I currently ran into a problem with Localization of URLs
I guess it is related to MGNLETK-30
Code from info.magnolia.module.templatingkit.resources.Resource
String fullLinkToPage = mgnl.createLink(page);
String pagePath =
uri2repository.getURI(LinkFactory.createLink(page));
// remove the content related part from the full uri
// now we can create the link safely and we are sure that
the multisite filter will
// detect the correct site
linkPrefix = StringUtils.removeEnd(fullLinkToPage,
pagePath);
This should return the context-Path in the end (for the default site).
Having the URLs localized based on the Page-Title/Navigation Title, it
seems not to work for the Themed Resources.
My use-case here is, Page URL is
fullLinkToPage = "/<contextPath>/<Level1-URL-Part>/<Level2-URL-Part>.html"
(like /myapp/Hello/World.html)
String pagePath = "/<Level1-JCR-Node-Name>/<Level2-JCR-Node-Name>.html";
(like /page1/page1-sub1.html)
It now does, according to the code, remove the pagePage part from the
fullLinkToPage and expects to get the absolute site-root.
This is quite hard for me to debug, and to find a simple solution to fix
this behavior.
In the Code, there is still a FIXME for the MGNLETK-30, which is found to
be still unresolved, yet.
Can somebody give me a hint about, why it is like this, and if there is a
potential fix approach regarding this problem?
Maybe this behavior can be disabled somehow, it's a single-site setup
anyways. Tweaking in the LinkFactory or something?
Thanks in advance
Marco
--
15 Years of Excellence - http://netcetera.com
Marco Glur | [email protected]
T +41 44 247 79 20
Netcetera AG | 8040 Zurich | Switzerland | http://netcetera.com
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------