Skip to main content
Lanark
Participating Frequently
September 26, 2025
Question

Links to a subfolder (not a file) get rewritten

  • September 26, 2025
  • 2 replies
  • 112 views

If I have some navigation links within a library item and they are hyperlinks to a subfolder

e.g.

<a href="../example/">example </a>

 

then Dreamweaver will rewrite this to

<a href="../example">example </a>

 

i.e. it removes the trailing space and makes the link look like it is going to a single page rather than a directory. Also if you do have a page with that name it will be loaded instead of the intended directory.

 

Is there any way to stop this from happening?

 

Google will see these are two separate URLs and so it is bad for SEO.

 

I could just avoid this by linking to "../example/index.html" but that is ugly and means that any future change to, for example .php, would mean changing all the links.

2 replies

Nancy OShea
Community Expert
September 30, 2025

1) All links are ugly. That's not something I lose sleep over. Nobody cares except you.

2) For as long as I can remember, DW's proprietary Library Items have been problematic and limiting. I never use them. Server-side includes are way better for populating links to multiple pages. And more efficient, too. 

 

Nancy O'Shea— Product User & Community Expert
Lanark
LanarkAuthor
Participating Frequently
September 26, 2025

"i.e. it removes the trailing slash", I meant to write.

Jon Fritz
Community Expert
September 29, 2025

I can't get this to happen in my DW 21.4 under Windows 11.

What version of the program and OS are you runnning?

Have you tried any troubleshooting steps like restoring preferences yet?

Lanark
LanarkAuthor
Participating Frequently
October 4, 2025

It is version 21.3 build 15593 under macOS Sequoia