edtor.html restricting anchor in AEM

252 Views Asked by At

I am using aem anchor from RTE. Problem is its not working in author mode, so below url is working :

http://localhost:4502/content/home/anchortest.html#myanchor

whereas this one is not working (preview mode) :

http://localhost:4502/editor.html/content/home/anchortest.html#myanchor

Please help, Thanks in advance

1

There are 1 best solutions below

0
On BEST ANSWER

Since author mode in AEM auto generates the iFrame of the content page so it doesnt take its source url along with the anchor hash automatically. This is why its not working in presense of {editor.html} while it works on publish environment or url without {editor.html}