[Yanel-usage] Using absolute redirect path
Michael Wechner
michael.wechner at wyona.com
Tue Jan 28 15:37:34 CET 2014
Hi
I have slightly improved the redirect resource (version 1.0.2), such
that one can also use absolute paths, e.g.
<yanel:resource-config xmlns:yanel="http://www.wyona.org/yanel/rti/1.0">
<yanel:rti name="redirect"
namespace="http://www.wyona.org/yanel/resource/1.0.2"/>
<yanel:property name="href" value="/people/michael-wechner/index.html"/>
</yanel:resource-config>
This makes sense for example in cases like
http://www.wyona.com/people/michael-wechner/
http://www.wyona.com/people/michael-wechner
when it is not clear whether a trailing slash will be entered by the
user, because Yanel will map both URLs to
res-configs/people/michael-wechner.yanel-rc
and hence the relative redirect URL index.html or
michael-wechner/index.html would only work with one or the other.
Thanks
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wyona.org/pipermail/yanel-usage/attachments/20140128/db1b5a4d/attachment.html>
More information about the Yanel-usage
mailing list