Highlighted

Redirect property non working when pasting link in browser URL

AlessandroFromD

14-03-2018

Hi,

We manage a site created with AEM 6.2 running on Linux Red hat 7.2

We created several redirect pages using the "redirect" property you can set in "Avanced" tab.

So when you click to the menu link for:

https://mysite/content/it/products/product1.html

you are redirected to:

https://mysite/content/it/products/product2.html

Also when you paste https://mysite/content/it/products/product1.html​ directly on the browser URL you are redirected to

https://mysite/content/it/products/product2.html

We made this kind of redirection also under section:

https://mysite/content/adv

in this case the redirection works when you click on the link but id doesn' t when you paste the URL. Is there a misconfiguration ? how can we debug this problem ?

Replies

Highlighted

AlessandroFromD

19-03-2018

Sorry, but it is not clear to me. I try to explain a little better with some sample URLS

I have a redirect that works fine:

https://mysite/content/main/it/pro/mobile.html

to

https://mysite/content/main/it/pro/service/mobile.html

And one which does not work:

https://mysite/content/main/adv/rent.html

to

https://mysite/content/main/it/pro.html

I used the JCR resolver with all of the pages and there is no difference in resolution between

*/content.html and */content

I am comparing

https://mysite/content/main/adv/rent.html with https://mysite/content/main/adv/rent

for example.

If this is what you mean, may be, it is not the cause of the problem.