Open SysPete opened 8 years ago
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
request->path
/admin/foo
/base/admin/foo/create
but we get:
/admin/foo/base/create
https://metacpan.org/pod/Template::Flute#uri
The uri rewrite magic happens before tokens are applied.
With this spec:
and this html:
With an app mounted on
/base
andrequest->path
being/admin/foo
I would expect the following href:but we get: