Re: Problem with the relative links
Poonam <[email protected]>
| Newsgroups | gmane.comp.cms.lenya.user |
|---|---|
| Message-ID | <[email protected]> |
Andreas Hartmann wrote: > Hi Poonam, > > Poonam schrieb: >> I have the requirement to change the url of a page of a website. >> >> As per the requirement I have added a matcher in the pipeline as >> >> <map:match pattern="**/abc/xyz/*.html"> I need to >> keep these pages editable. The issue I am facing is that when I reach >> at **/abc/xyz/test.html page, all the >> relative links work w.r.t **/abc/xyz base. (example : page1.html >> refers /live/abc/xyz/page1.html but it should be >> /live/page1.html). >> >> I am using lenya 1.2.4 > > > that's not very easy to achieve because Lenya 1.2 uses URIs to > internally reference documents. As you already noticed, changing the > matchers confuses the link rewriting. > > You could try to add another bidirectional link rewriting layer in > front of Lenya, e.g. using a servlet filter. > > -- Andreas > > > > Thanks Andreas for the information. Please can you let me know if there is any link where I can read about adding bidirectional links in lenya? Regards Poonam