Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base uri rewrite applied too early #161

Open
SysPete opened this issue Oct 6, 2016 · 0 comments
Open

base uri rewrite applied too early #161

SysPete opened this issue Oct 6, 2016 · 0 comments

Comments

@SysPete
Copy link
Collaborator

SysPete commented Oct 6, 2016

https://metacpan.org/pod/Template::Flute#uri

The uri rewrite magic happens before tokens are applied.

With this spec:

<value name="create-button" field="request.path" target="href" op="prepend"/>

and this html:

<a class="btn btn-primary create-button" href="/create">Create <span class="class">Thing</span></a>

With an app mounted on /base and request->path being /admin/foo I would expect the following href:

/base/admin/foo/create

but we get:

/admin/foo/base/create
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant