Intranet website link to file

When editing the links on an Intranet site in HTML, I am running into an issue.

I have added the following HTML code to the intranet page:

<a href="file:\\Company-server\shared\Company_Handbook.pdf"><strong>Company Handbook</strong>

It works fine on the server that I am editing the page on and can click on the link and it will open the PDF file in Internet Explorer page.

However, when I view the intranet site from a workstation on the network, I can hover the mouse over the link an the link will display the following:

<a href="file://Company-server/shared/Company_Handbook.pdf"><strong>Company Handbook</strong>

The back-slashes have been changed to forward-slashes. When I click on the file nothing happens, but I can right-click and use "Save Target As"

Any ideas as to why it changes?
SBSWIZARDAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Because it is supposed to change in web pages.  At that point, it has become a 'web reference' or link, not a Windows links.  You must be using Internet Explorer to get anything at all from a computer other than the server.  Other browsers probably wouldn't even let you download the file from a 'file://' link on a remote server.  When you working on and logged into the server, you are running under your own permissions.  When you're on another computer, you're limited to the permissions of the web server.
0
SBSWIZARDAuthor Commented:
Is there a proper code to get it to work on another machine? All users on the network use IE.
0
Dave BaldwinFixer of ProblemsCommented:
Put the file in the same directory as the web page and use a 'regular' web link.

<a href="Company_Handbook.pdf"><strong>Company Handbook</strong></a>
0
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

SBSWIZARDAuthor Commented:
Placed the file in the same directory as the web page, changed the HTML code and now I get a web page to open but "Page cannot be found" and cannot save the file either.

Sorry. It's just been a while since I've last messed with HTML.
0
Dave BaldwinFixer of ProblemsCommented:
Links like that work perfectly on all my web sites.  Check to make sure the name is spelled correctly.  Then check the permissions on that file and folder.  The IUSR and Everyone should have read access to the directory and file.  If this is a Sharepoint site, you might want to "Request Attention" above and get that topic added to your question.  Sharepoint seems to have other permission issues than just a web site would.
0
SBSWIZARDAuthor Commented:
Ok. I'll check permissions. Not a Sharepoint site. Just an internal site with several external links on it.
0
SBSWIZARDAuthor Commented:
Permissions are still not resolving the issue.
0
Dave BaldwinFixer of ProblemsCommented:
Is it even a web server?  Or just files in a directory?
0
SBSWIZARDAuthor Commented:
THe server that is hosting the files is not a web server.

Ive attached what I have to work with to edit the Intranet
0
SBSWIZARDAuthor Commented:
Attached this time
Capture.JPG
0
Dave BaldwinFixer of ProblemsCommented:
Modern web browsers block access to files that are linked that way to prevent outsiders from getting to your files.  The 'proper' way is to place the file on a web server that is on your intranet.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming Languages-Other

From novice to tech pro — start learning today.