Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Navigating to a different HTML page within the same article file

Avatar

Level 2

Hi all,

Is it possible to navigate to a different HTML page that is contained within the same article file? E.g. index.html contains an <a> tag that has a href pointing to page2.html? This seems to work in the Preflight app in iOS but not in Windows. Currently, I am using relative links, e.g.

<a href="page2.html">Page 2</a>

Should I be using a different syntax? E.g.

<a href="navto://page2.html">Page 2</a>

Thanks,

Frank

1 Accepted Solution

Avatar

Correct answer by
Level 2

I found the solution. Use JS instead. windows.location.href appears to work for both ios and windows.

View solution in original post

4 Replies

Avatar

Correct answer by
Level 2

I found the solution. Use JS instead. windows.location.href appears to work for both ios and windows.

Avatar

Level 1

Hi!
I'm interested in your solution. What did you exactly do?

Avatar

Level 2

You'll have to write some JavaScript to get it working on iOS and Windows. For example:

<a onclick="window.location.href = 'page2.html'">Click me</a>