How to open local file links with special characters? - html

I have an intranet here where I want to link to some local files on a network share.
The Path to the files has special characters (mutated vowel, e.g. "äöü").
My href-links look like the following:
href="file:///\\SERVER\share\path\für alle\example.pdf"
The link does work in IE, and also if I open it in Firefox as a new Tab. But it doesn't work if I simply click on it. Instead of the document, my local folder "My documents" opens.
Do I make something wrong? Or is this a Bug in Firefox? (using Firefox 32.0.1)
PS:
for your information: I have allowed the local file links in Firefox in "about:config" with the following entries:
capability.policy.policynames: localfilelinks
capability.policy.localfilelinks.checkloaduri.enabled: allAccess
capability.policy.localfilelinks.sites: http://intranet

I have tried different computers now. Obviously, this error only appears on my own computer.
I have created a new firefox profile, this solved the problem. So my profile seems to be corrupted or maybe I have a problematic setting.

Related

creating a link to a local file on a locally-run web page (Chrome), while "Local File Links" extenstion is enabled

I want to use the html href attribute as a hyperlink to present a local html file, located on my hard rive.I have the following code, and I'm using the Chrome browser:
List: Specified
The "Local File Links" extension is enabled.
I've also tried:
(a) href="file:///F:......\nameOfLocalFile.html">Specified
(b) List: Specified
It doesn't work and the files are not opened.
Is there a new way today (11/2019) in html to access other files on my hard drive in Chrome (and in other browsers, possibly). Is there a certain extension in Chrome I am missing or a certain keyword in html for achieving this?
I am running Windows 10 and Using Chrome as default browser.
You have done a simple mistake.
Try to change your \ to /.
Click
Your problem will be sorted out

Is there any way to open a local file from a html code in google chrome?

so, i've ben hunting for the answer, and seems like i can't get this to work, i wanted to make so that, i have a browser page already made in html, and when i click a link in there, it opens a chosen folder on the computer, but i don't want it to open on just this computer's path, I wanted to open a folder that is inside the main folder, so that anyone that has the same files as I do, can open it, i tried < a href="File_path">, tried putting < a href="file:///(file path)">, tried like i have in excel ../../'file path', and can't see where is the problem, anyone can help?
Here you need to use a "file" protocol to link a file in the HTML like,
Link
The browser may or may not open the file due to the security setting. You can click the right button and choose "copy link address" and then paste it into the browser.
There are security implications of showing a local file/folder from an website. It may work when the page is held locally but when on a server it will be failing. However definitely not any chosen folder anywhere in your PC.
If you require to achieve such you need custom implementation using a programming language like ASP .NET like shown in this example.
https://stackoverflow.com/a/6047826/684030
You haven't mention much details on what web server you are using. But if it's IIS (Windows) you may consider allowing directory browsing which may allow to show a sub directory under your website.

Chrome inspector doesn't show css line number anymore in many of the localhost sites

Every other website I visit, the inspector works as expected:
But in many of the sites I'm editing within apache server (using xampp) somehow they doesn't show the "filename.css:lineNumber" data
Also, every change I try to do in the inspector in thse sites, doesn't do anything to the code shown in the source tab.
I've tried refreshing, hard refreshing with cache, closing and opening the tab, closing and opening chrome again. The same problem occurs.
In other sites the inspector works well, but not in many of the localhost sites.
Has someone experienced this before? Is there a way to fix this?
If you are using a client-side CSS generator library such as Lea Verou's excellent -prefix-free or client-side Less, you will not see source information as it has all been processed and reinjected as style elements.
Client-side Less has a property [dumpLineNumbers] to include source line info as a comment in the generated source. (I'm not sure if this will display in Chrome's inspector - but I think it might)
The only "fix" I know of for -prefix-free is to temporarily remove it, obtain the source info for reference, then put it back in.
I have had the exact same problem (not using a css generator), and it appears to be a known bug with the current version of Chrome, the solution is to use the more up to date Beta version known as Chrome Canary - Here's the link :)
https://www.google.co.uk/intl/en/chrome/browser/canary.html
Try to check what the format of your CSS file is. I had the same trouble with the UNIX and Macintosh formats. For example, try to open you CSS file in Notepad++ and in the bottom right corner of the window you'll see your current format. If you see UNIX or Macintosh there, click it with the right button of your mouse and change to DOS/Windows. Then save your file and refresh your page in Chrome. It definitely helped in my case.enter image description here

The links to .xls files will not work on my intranet site?

I am currently building an asp intranet site.
There are various helpful links that I need to include and some of them happen to be .xls files that are located on a local network within the company.
I link these documents just like I would any word docs (which work fine by the way).
<span>Schedule</span>
The link above works if I simply copy and paste the raw address into my browser (a pop-up window comes up asking me to open the file in Excel). But when I make this a link on the intranet site and try to click on it, nothing happens. I can see the link when I hover over it on the status bar but that's it. It is non-clickable. Anyone have any idea what is causing this and how to fix it?
I should mention that two of these .xls files are password-protected but one of them is simply a read-only file which can be opened by anyone.
I am 100% sure this has nothing to do with css styling because the same thing happens in the current (old) intranet site made by someone else and I use these links on different menu bars as well.
I think you use wrong syntax for shared files, try this:
file:///P:\-Projects-\SCHEDULE.xls
Backslashes are still valid for the path part. Moreover, I'm not sure whether Sharepoint may recognize correctly path to most likely network drive P:.
For me such link to local share works:
file:///\\fs-1\Install\Windows\Servers\DB\MSSQL\SQL2005\en_sql_server_2005_service_pack_4_x64.exe
The solution to this problem is to add the site to the "Trusted Sites" list.
Opening intranet files without the user knowing is considered a secruity threat.
In IE go to Internet Options -> Security -> Trusted Sites then add the site.
http://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/after-latest-update-ie-wont-open-network-file/172e4ac3-1c1f-4948-8a3f-c8c344eae06d

Hyperlink to a network share

My scenario is this:
I have two network shares (on the same network) that I would like to construct them as a A HREF network share. I tried to make it work with all the solutions given here but couldn't succeeed. These A HREF links are generated on the fly thru a application and sent as a HTML Outlook e-mail. I wanted the link to look like this in the Outlook HTML e-mail.
\\remote_machine_name\sharename1\Windows\notepad.exe \\remote_machine_name\sharename2\SCANDISK.acc
So, all I need is make notepad.exe open on the remote machine along with SCANDISK.acc open on the same remote machine and as a input to notepad.exe. Please note that the remote machines are same both for notepad.exe and for the .acc file but the share names are different.
Btw, I'm also thinking of another possibility of generating javascript code on the fly from the application and take the .acc file as an input and in the javascript method, open notepad.exe and input .acc file to it. Will this work?
As a side note, whenever I click on the .acc file link in the HTML Outlook e-mail, I'm getting a warning from Outlook with a dialog that shows (Open, Save and Cancel).
Please help.
You'll want to do something like this:
file://///servername/sharename/path/to/file/file.ext
There are five slashes after file: and they mean: /// for the file protocol and // for the path to the server. A normal windows path would be like this:
\\servername\sharename\path\to\file\file.ext
All you need to do is reverse the slashes and append it to file:///
Weird answer that works for on new Edge
Im new to HTML and coding in general but i got this to work using this code
make sure you add (<)p(>)(<)a(>) but without () and before href
cant show it all together otherwise it will not show the code on here
href="\server\folder\location" target="_blank" rel="noreferrer noopener">test
The code is a website link opener that will open said folder in a new browser tab.
"test" being the visual hyperlink name that users will click on. This should work on cloud drives in your intranet as well local drives.