Forum Moderators: open

Message Too Old, No Replies

Dreamweaver adding extra /

before all links

         

limbo

11:34 pm on Feb 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Don't know if it is my copy - or a preference, but every time I link to another page or to an image dreamweaver is adding a / before the path so the file is incorrect rendering all links useless

At the moment I am having to go into every page and manually remove them. It is frustrating - anyone seen this?

If I use templates the / renders them useless as the the file path in the 'father' uneditable region points to:

/templates/home.htm

and not

templates/home.htm

nightmare!

Ta

Limbo

thehittmann

4:52 am on Feb 25, 2004 (gmt 0)

10+ Year Member



I dont see what the problem is here

If dreamweaver is adding an extra / it should still open the page with no problems

Is /templates/home.htm becoming www.domain.com//templates/home.htm

If you want to point to home.htm from here templates/home.htm all you need to do is home.htm

It could be doing this because you are setting your relative link wrong.

limbo

10:19 am on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Cheers hittmann - not sure I explained myself well enough

If dreamweaver is adding an extra / it should still open the page with no problems

This is my problem - the page is not displaying, in any browser, elements that have / in front of them - I use relative links to all my pages and absolute ones to pages outside my domain. I have been using DW at work for the past 3 years and this has never happend before, that is why I thought it was something I had done to my home edition - It is very frustrating as I am spending too much time going into pages to remove the backslashes and I have had to break free from using dwt files.

To make it clearer what is happening

I have an image box.gif

When I insert the image the DW page displays it as:

<img src="/box.gif">

remove the /

<img src="box.gif">

and it displays fine in the browser (obviously). How do I stop DW doing this? somebody please help...

Thanks

Limbo

Leosghost

11:43 am on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I am just wondering and please don't be offended but did you "buy" both home and office copies from MM...

should "heaven forbid" one of them be a "backup" using someone elses "bandaid" it would explain your problem ..

My apologies if this isnt the case....

thehittmann

12:04 pm on Feb 25, 2004 (gmt 0)

10+ Year Member



when you add an image to a web page in dmx 2004 there is a drop down box where you can choose either to have the image relative to the document (as you want) or relative to the site root (which adds the leading /) Maybe your default setting of this is not what you want.

BlobFisk

12:05 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It's been a while since I've used DW, but is there an option somewhere on the tool window (when you have put the focus on the link) to switch between document relative and root relative link usage?

Yours seems to be at root relative, rather than document relative...

HTH

limbo

1:42 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hittmann & Blobfisk

Spot on - It must be pointing at the root! I will check tonight.

Appreciate you help - this was causing me untold grief.

Ta

Limbo

Leosghost - no offence taken: full copy of DW4 :)

Leosghost

2:40 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks limbo ...just that Iv'e got a "side line" business here in France ( my real one is artwork /sculpture )in basic Internet computing etc ...Over 60% of my customers are using "Backups" and have the weirdest things going on in their machines when I get there ...they always seem to beleive that the internet is full of nice folks who help them "backup" with no ulterior motive and a "bandaid" only writes what it says to the registry etc :)..
Or that the XP family version is a program...sorry ..rant
I didn't think of the options ...never understood why anyone would want the two options so I set mine for the one that works so long ago I forgot the option existed .......

choster

2:45 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did you check your site definition? It might be a typo, setting the home page to [example.com...] instead of [example.com...] .

limbo

7:01 pm on Feb 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks everyone :)

Sometimes it's the simple things - Site was defaulting to 'root' not 'document',

Don't know why (don't care!)

Was going crazy over this one - the men in white coats will have to wait another day

Ta

Limbo