Force hyperlinks in HTML article to open in device browser

Avatar

Avatar

Keith_Gilbert

Avatar

Keith_Gilbert

Keith_Gilbert

26-01-2017

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Bob_Bringhurst_

Employee

Avatar

Bob_Bringhurst_

Employee

Bob_Bringhurst_
Employee

26-01-2017

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

Answers (1)

Answers (1)

Avatar

Avatar

Keith_Gilbert

Avatar

Keith_Gilbert

Keith_Gilbert

27-01-2017

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