We help IT Professionals succeed at work.

Relative link using LinkBar in FrontPage 2002.

Hi.......

          I need help with using LinkBar in FrontPage 2002.

          I want to use relative URL for one fo the items in a linkbar.

          Say, I have a file called 1.html in folder "a". Suppose, I have folder "b" in "a". Say, "b" has 2.html. When I want to have a link to 2.html in 1.html, I wud give <a href=/b/2.html>link</a>. Conversely, If I want a link to 1.html in 2.html, I wud give <a href=../1.html>link</a>.

          But If give "../1.html" in the item in the link bar, it resolves to <a href="file:///c:\a\1.html>link</a>, which is not desired.

          If I select 1.html in the file browse box,I only get the absolute URL.

          How can I get the item in a link bar linked as "../1.html" ?
Comment
Watch Question

Commented:
Have you saved the page yet? Most programs make you save before they set relative links...until you save it someplace, there's nothing to set the link relative TO.

Author

Commented:
Ya, I have. else how would it reflect in the browser!. What happening is this:

If ../1.html is left as it is, the browser resolves that without prob. what happening, is FP is resolving it, which is not desired.
rajivraj123,

This type of thing happens all the time if you are developing the web locally.  Because Frontpage wants to be 'smarter' than the user, it tries to help you out with those relative links and it's a real pain to get around, other than publishing to an actual web.

HTH

Thanks,
Robert
I think the correct answer here is "you can't do that".

You're using a WYSIWYG....you can't control it.  It's trying to help you.

You can create your nav bars in FP, then open the page in notepad and re-code the links...but that is only a temporary solution, because everytime to you open the page in FP you will have to redo the links.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
PAQ / No Refund
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

coreybryant
EE Cleanup Volunteer
Question is PAQ'd and no points refunded.

YensidMod
Community Support Moderator @Experts Exchange

Explore More ContentExplore courses, solutions, and other research materials related to this topic.