How to reference local files using hyperlinks in html files on Android 10?

Viewed 1186

I've created two html files named "file1.html" and "file2.html" in the same directory on my Android 10 based smartphone. file1.html contains the following hyperlink:

<a href="file2.html">Relative link to file 2</a>

But when I open file1.html in browser and click the link I face the "File note found" message. On older Android versions it worked fine.

Replacing the link with the absolute:

<a href="/storage/emulated/0/Documents/file2.html">Absolute link to file 2</a>

helps for Firefox browser, but still fails for others (Chrome, Opera, Dolphin, etc.).

Any ideas how to overcome the issue at least for Chrome and Opera?

0 Answers
Related