[Yanel-dev] [Bug 5273] back2realm doesn't work correctly for pages
under the realm root prefix, e.g. /yanel/my-realm/page.html
bugzilla-daemon at bugzilla.wyona.com
bugzilla-daemon at bugzilla.wyona.com
Thu Apr 19 16:42:34 CEST 2007
http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=5273
------- Additional Comments From jonathan.addison at wyona.com 2007-04-19 16:42 -------
Created an attachment (id=661)
--> (http://bugzilla.wyona.com/cgi-bin/bugzilla/attachment.cgi?id=661&action=view)
fixes back2realm problem with translation links on meta pages
This is not actually a back2realm bug, but rather a bug in how the links were
being created.
<a href="{$yanel.back2realm}{@path}">
The problem is that the path always starts with '/'. When there is a
back2realm value, the href is something like ..//de/wer-wir-sind.html (with the
first slash belonging to back2realm, and the second to the path).
But when back2realm is null, the href is /about_us.html, which doesn't work.
So changing to this fixes the issue.
<a href="{$yanel.back2realm}{substring-after(@path, '/')}">
But does the @path really need the first slash for other things in Yanel, or
could we remove it?
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the Yanel-development
mailing list