Highlighted

Redirect property non working when pasting link in browser URL

Avatar

Avatar

AlessandroFromD

Avatar

AlessandroFromD

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

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

961

Correct Answer

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

5.6K

Likes

961

Correct Answer

1.1K
kautuk_sahni
Community Manager

15-03-2018

Can you please check when you click on the link is it having an extension to the hyperlink?

Extension helps in Sling Resource Resolution in AEM:-  http://www.aemcq5tutorials.com/tutorials/sling-resource-resolution-aem/

Sling resolution of  "https://mysite/content/adv" could be different from "https://mysite/content/adv.extension".

Sling Resolution tool:- http://localhost:4502/system/console/jcrresolver

Reference:- URL Mapping and Deep Linking | AEM Tips

Highlighted

Avatar

Avatar

AlessandroFromD

Avatar

AlessandroFromD

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.