Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I write an advanced help file with the following syntax:
<a href="&base_url&node/123/edit">Edit some content</a>
... and then place that on a site with Clean URLs disabled, I'll get a 404.
I believe this is due to line 559 in 6.x-1.2, which replaces &base_url& with $base_path, rather than calling url() on the node/123/edit part. Perhaps I'm misreading the documentation for generating links to other parts of the Drupal site?
Comment | File | Size | Author |
---|---|---|---|
#3 | 521122-unclean_urls-1.patch | 973 bytes | redndahead |
#1 | unclean_urls.patch | 995 bytes | fgm |
Comments
Comment #1
fgmConfirmed.
Suggested patch attached.
Comment #2
fgmtopic error
Comment #3
redndahead CreditAttribution: redndahead commentedHere is an updated patch that just removes the extra line. This has been committed.