Firefox Can't Follow HTML Hyperlinks To Local Files - Recognize Relative Hyperlinks?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Firefox Can't Follow HTML Hyperlinks To Local Files - Recognize Relative Hyperlinks?
I'm a Linux newbie, but some people have categorized me a "Power User" of the other operating system. So I think I get the concepts, but may also need some very basic tips (like how do I get someplace to enter commands, what's really an Applet and can I change applets or whatever without rendering something inoperative).
Hardware:
(1) Dell Inspiron Mini.
Software:
(1) Whatever came with the Dell/Ubuntu Hardy Heron;
(2) Firefox
Problem:
(1) I have notes that I wrote in html using a text editor, sometimes Windows, sometimes other devices like handhelds. It is basically a table of contents with hyperlinks to local files. They work fine in Windows or Windows mobile, and I can post them on the Internet and they work, too. But the information is confidential and I don't want it on the Internet, I want it all accessible locally.
(2) I moved the files to the Linux box, but when I click on the links, Firefox can't find them.
Any idea how to make sure "relative" links work on Linux/Firefox in an html file (filename extensions, though are *.htm)?
I'd hate to have to edit 300 links and/or rename 300 files.
The 'how the files are stored' question kind of lead to what seems to be a solution:
I was used to Windows "Shortcuts" but it seems that a Linux Create Link is read differently. I created a link to the desktop and the linking file was looking on the desktop, not in the folder where the files were located.
All are relative links anyway, so all the files have to be in the same folder.
Also, it appears that a Linux Firefox link is case sensitive -- .htm is different from .HTM.
Thanks for the tips that lead to better understanding.
All are relative links anyway, so all the files have to be in the same folder.
They can be in sub-folders as well - use forward slash (/) rather than backslash (\) in the link names. That way your work will be readable everywhere - even IE will handle them o.k. I tend to create a directory on a USB key and just create a top level index.htm - that way I have everything with me, and accessible.
If you want a hand to convert the backslashes, I can provide a simple command to do that for you (on Linux).
I typed the code myself and there are no slashes. Here's an example:
<A HREF="Management.htm#Management"><STRONG>Management</STRONG></A></P>
Maybe I'm just using unsophisticated coding, being an amateur, but those seem to work. I'd be happy to learn more and thanks for your guidance.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.