Sorry to report but, named anchors are not working when importing static html pages. Seems this issue is related to the drupal core, however, I thought I would put it here since I am using this module to import my static site. Sure would be nice if there was a way to incorporate a fix while doing the import.

ie; /#anchor will load the main site node page with this added to it and therefore giving you a "page not found"

To be honest, I'm surprised simple things like named anchors is not supported in Drupal... lot's of good stuff in drupal, but leaving out the simple things is not so good.

Comments

dman’s picture

Status: Active » Closed (works as designed)

3 bits of good news.

1. I already knew that, and intentionally did NOT fix it in the import stage, as the only way to do so would have been coding document paths into files which rightfully are only relative to themselves.
It's mentioned in the last section of the help document.

2.
http://drupal.org/project/rellinkfilter
Is a module that fixes this where it should be fixed - on output.

3.
BASE is being put out of its misery soon
http://drupal.org/node/13148
(Note this issue is two years old and still active)

creatorsdream’s picture

Tried http://drupal.org/project/rellinkfilter and it screwed up the named anchors that I had imported. It deleted the first character of the urls so it made it useless to use. Also, it made loading of the page super slow. So, I'm assuming named anchors is not possible and am going to edit the pages which imported the anchors.

Thanks for your assistance though dman!