You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Poonam <po...@techblue.co.uk> on 2009/12/08 18:02:19 UTC
Problem with the relative links
Hi
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
Thanks
Poonam
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Problem with the relative links
Posted by Poonam <po...@techblue.co.uk>.
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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Problem with the relative links
Posted by Andreas Hartmann <an...@apache.org>.
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
--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org
Re: Problem with the relative links
Posted by Poonam <po...@techblue.co.uk>.
Poonam wrote:
> Hi
>
> 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
>
> Thanks
> Poonam
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>
Please Suggest
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org