


If a url is like - content/test/en_us/hello.html#button in the below specification,
sling:match : mypage/
sling:internalRedirect : content/test/en_us/
After url rewritting it is creating above url like : mypage/hello.html , here it removes # value from the url.
expected to bo : mypage/hello.html#button
Can any one please help me out here why it is happening like this???
Views
Replies
Total Likes
Try using
sling:match \[^/]+/mypage/ and see if it works.
Thanks
Tuhin
Views
Replies
Sign in to like this content
Total Likes
Hi Tuhin,
my map structure is :
map -> http -> www.mysite.com -> mypage
and mypage sling:Mapping node has the below property
sling:match : mypage/
sling:internalRedirect : content/test/en_us/
on doing so it rewrite the url from : /content/test/en_us/hello.html#button to : www.mysite.com/mypage/hello.html
here I expect #value to be there in the url.
I have changed sling:match as your advice.
sling:match : \[^/]+/mypage/
Now it is not rewirtting my url it is keeping as it is like : /content/test/en_us/hello.html#button
expected to be www.mysite.com/mypage/hello.html#button.
Can you please help me if I am doing something wrong here or how can we fix this issue?
Thanks,
Views
Replies
Total Likes
Hi,
After this said change could you please try hitting "www.mysite.com/mypage/hello.html#button" and see if this works or not?
Thanks
Tuhin
Views
Replies
Sign in to like this content
Total Likes
Hi Tuhin,
I am pointing to url rewritting in content responce. like below.
<a href="https://forums.adobe.com/content/test/en_us/hello.html#button">LEARN MORE</a> this was
rewritten to <a href="http://www.mysite.com/mypage/hello.html">LEARN MORE</a>
I am expecting this like : <a href="http://www.mysite.com/mypage/hello.html#button">LEARN MORE</a>
After the changes you mentioned it is not rewritting the href in responce.
It is same : <a href="https://forums.adobe.com/content/test/en_us/hello.html#button">LEARN MORE</a>
Thanks,
Views
Replies
Total Likes
OK, Got your point, this would not work with the use case you have given.
Please try some of the below urls where there are some good examples.
https://www.linkedin.com/pulse/url-management-aem-stack-tushar-garg
http://stackoverflow.com/questions/28967432/aem-url-shortening
https://forums.adobe.com/thread/1103169
Thanks
Tuhin
Views
Replies
Sign in to like this content
Total Likes
Hi Tuhin,
Actually this map configuration it was working fine earlier, I don't know may be some setting or property changes it is creating this issue.
Can you please help me what changes may can create this issue.
Thanks,
Views
Replies
Total Likes
Views
Replies
Sign in to like this content
Total Likes
If anyone can help here with this log. It is clear from log AEM LinkCheckerTransformer is not functioning correctly even if all configuration are same.
In my local :
com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformer href attribute rewritten from /content/test/en_us/platforms/connect.html#testPage to http://local.myweb.com/platforms/connect.html#testPage
In dev :
com.day.cq.rewriter.linkchecker.impl.LinkCheckerTransformer href attribute rewritten from /content/test/en_us/ideas/educator/future-education.html#mypage to http://dev.myweb.com/highered/ideas/educator/future-education.html
Thanks in advance if any AEM support team can find this AEM functionality issue.
Views
Replies
Total Likes
Have you compared the settings of the link checker on local and dev instances ?
Views
Replies
Sign in to like this content
Total Likes
Yeah I have compared it is exactly the same configuration as in atttached image.
Views
Replies
Total Likes
Hi Kunal,
The below bundle is causing the issue here.
Views
Replies
Total Likes