Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

sling:internalRedirect is rewirtting the internal url but truncating the url from #.

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???

3 Replies


Level 7

Try using 

sling:match \[^/]+/mypage/ and see if it works.




Hi Tuhin,

my map structure is :

map -> http -> ->  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 :

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

Can you please help me if I am doing something wrong here or how can we fix this issue?



Level 7


After this said change could you please try hitting "" and see if this works or not?



Hi Tuhin,

I am pointing to url rewritting in content responce. like below.

<a href="">LEARN MORE</a> this was

rewritten to <a href="">LEARN MORE</a>

I am expecting this like : <a href="">LEARN MORE</a>

After the changes you mentioned it is not rewritting the href in responce.

It is same : <a href="">LEARN MORE</a>


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.


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 : href attribute rewritten from /content/test/en_us/platforms/connect.html#testPage to

In dev : href attribute rewritten from /content/test/en_us/ideas/educator/future-education.html#mypage to


Thanks in advance if any AEM support team can find this AEM functionality issue.