webextension_local_filesystem_links icon indicating copy to clipboard operation
webextension_local_filesystem_links copied to clipboard

Automatically handling links of relative path in an opened local HTML file

Open coiby opened this issue 6 years ago • 1 comments

Hi,

Can this extension support local files with links of relative path which don't have a file:/// prefix ? For example, I have a file called index.html which has the following content,

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Hi</title>
<meta charset="utf-8">
</head>
<body>
<a href="./assets/js">test</a>
</body>
</html>

If I open this file in the browser, the address in the address bar will be file:///folder_name/index. If I mouse the mouse over this <a href="./assets/js">test</a>, the browser will give the absolute address file:///folder_name/assets/js in the left bottom area. I want to Local Filesytem Links to handle such links as well. It would be a very handy feature when I use off-line course materials which contains videos, ppts etc..

Thank you!

coiby avatar Sep 03 '18 14:09 coiby

@coiby thanks, for your idea.

But I think it's not possible as I have already checked it at issue #65. Maybe I'll check it again. But why is adding file:/// a problem?

AWolf81 avatar Sep 04 '18 10:09 AWolf81