Expanding relative paths - Post ID...

User 9910 Photo


Registered User
4 posts

I have an html page that contains the following link (which is correct):

<a href="index.html">Home</a>

When I open it up in HTML Editor, it converts it to:

<a href="file:///H:/Data/Misc%20Data/NIGHTWebSite/WebSite/index.html">Home</a>

Is there any way to prevent this? Obviously it will not work if I post the page to the web.
User 184085 Photo


Ambassador
1,707 posts

but the path on your hard drive will be replaced with your website name so it will come up online as www.mysite.com/index.html

Relative paths are a good thing :)
Volunteering to help :)
http://www.tbaygeek.ca
My HTML play area
http://www.tbaygeek.ca/test/
User 9910 Photo


Registered User
4 posts

Sorry, false alarm. I just tried saving the file and it converted the full paths back to relative paths before it was saved. I didn't try saving earlier because I didn't want to go back in and fix all the paths.

Problem solved.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.