Not able to render editable URL of a asset in anchor tag
I am trying to pass a editable link of a asset to anchor tag href but while rendering it's removing the editor.html or assetdetails.html from the url.
Expected link: http:/localhost:4502/editor.html/content/dam/testcontentfragemen
Actual link: http:/localhost:4502/content/dam/testcontentfragemen
For other assets also
Expected link: http:/localhost:4502/assetdetails.html/content/dam/testvideo.mp4
Actual link: http:/localhost:4502/content/dam/testvideo.mp4
Please let me know how to handle it to get expected url with editor.html or assetdetails.html in anchor tag href..this is only happening for dam assets and not for pages.