Topic on Project:Support desk

[RESOLVED] Linking to external Link

8
AmazingTrans (talkcontribs)

I have my mediawiki on a virtual machine that is bridged. One thing i noticed was when i added an external link file:///Z:/test/test/index.html or file://///Z:/test/test/index.html. I tried clicking it in my internet explorer 11 but it does not work. It shows the proper link in the status bar: file:///Z:/test/test/index.html But when I clicked on it, it just did nothing. This goes the same for firefox, chrome or IE. But for Google Chrome they can be enabled using the LocalLinks extension.

On the other hand, when i created a html webpage, <a href="file:///Z:/test/test/index.html" target=_blank>Test</a>, the link works in all browser. Any idea why is this happening?

AT

Xanuri (talkcontribs)

Are you browsing from the same machine that mediawiki is installed on?

AmazingTrans (talkcontribs)

The Mediawiki is not on the same machine but on a different network drive. so far, the only way i can get it working is by using locallinks for chrome.

Ciencia Al Poder (talkcontribs)

Your browser is blocking the access of file:// links when the page that has the links is not saved in your local computer. That's why your local html file works but not when the link is placed in an internet/intranet site.

Having file:// links is a bad idea anyway. You should use a web server or ftp to store those files if you want to access them reliably from all computers of your network, because you can't expect all people to have Z:\ to be mapped to the same shared folder.

AmazingTrans (talkcontribs)

hmm, actually i also have issue even they are at this link: \\server_grp\folder\file.pdf and i use file://\\server_grp\folder\file.pdf the browser still does not allow the click

AmazingTrans (talkcontribs)

I just found out, it actually works in IE, but when i edit in chrome with visual editor: The file i have is located at: \\server_grp\folder\file test.pdf

I added the following: file://\\server_grp\folder\file%20test.pdf

In Chrome it shows: file://server_grp\folder\file%20test.pdf In IE it shows: file://server_grp\folder\file%2520test.pdf

Not sure what's going on here.

Ciencia Al Poder (talkcontribs)

You should probably report the issue in Phabricator for the VisualEditor project.

AmazingTrans (talkcontribs)

I found the issue today, and this is the only way it would work on all browser. If I were to use file://\\server_grp\folder\file%20test.pdf i would get 25 concatenated to the %20 in Internet Explorer.

But if i were to use as file://///server_grp/folder/file%20test.pdf everything would work. For everybody information, 1. Must have forward slash in whole string 2. Must have "ONLY" 5 forward slash after file 3. Must replace space with %20.

I can't wait for VE to allow ease of just copy and paste or popup a browse tree.

Reply to "[RESOLVED] Linking to external Link"