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
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Force hyperlinks in HTML article to open in device browser

Keith_Gilbert
Level 4
Level 4

I have several HTML articles that work great in AEM Mobile. But some of them contain links that we would like to open in the device browser, instead of the built-in app browser. Is there any way to do this?

1 Accepted Solution
Bob_Bringhurst_
Correct answer by
Employee
Employee

Hi Keith,

When you create a standard <a href> link in an HTML article, the link opens within the app.

Example: <a href = "http://www.google.com/">Google In App</a>

If you want to open the link in the external browser, use the goto:DeviceBrowser?url= format:

Example: <a href="goto://DeviceBrowser?url=https://www.google.com">Google External App</a>

-Bob

View solution in original post

2 Replies
Bob_Bringhurst_
Correct answer by
Employee
Employee

Hi Keith,

When you create a standard <a href> link in an HTML article, the link opens within the app.

Example: <a href = "http://www.google.com/">Google In App</a>

If you want to open the link in the external browser, use the goto:DeviceBrowser?url= format:

Example: <a href="goto://DeviceBrowser?url=https://www.google.com">Google External App</a>

-Bob

View solution in original post

Keith_Gilbert
Level 4
Level 4

Hey thanks Bob! I never noticed this one in the docs. Its there, I just missed it. Thanks for pointing it out.