내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

Fetch aem url with editor.html in JS

Avatar

Level 10

how to fetch a aem complete url with editor.html or cf# in javascript. When i used javascript/jquery methods to fetch a url, editor.html or cf# is not coming.

For eg: In localhost:4502/editor.html/content/sample if i use window.location.href or any other js methods

it is returning only location:4502/content/sample.

3 답변 개

Avatar

Community Advisor

for touch UI, you can use below:

"/"+Granite.author.EditorFrame.editorVanityURL+Granite.author.page.path+".html"

/editor.html/content/AEM63App/fr.html

Screenshot 2019-09-12 at 5.26.48 PM.png

Arun Patidar

AEM LinksLinkedIn

Avatar

Level 10

it is coming in console but if i use it in js file it is showing as undefined.

Avatar

Community Advisor

Where are you writing code. Inside sites js or dialog js?

If you need editor page when editing then create js with cq.authoring.dialog category.

Arun Patidar

AEM LinksLinkedIn