Allowing '#' as a link with the l() function
mattconnolly - June 20, 2008 - 10:31
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | base system |
| Category: | feature request |
| Priority: | normal |
| Assigned: | mattconnolly |
| Status: | patch (code needs work) |
Description
The l() function does not accept '#' as a link URL address. Here is a patch that allows this.
| Attachment | Size |
|---|---|
| allow-hash-url.patch | 1.04 KB |
| Testbed results | ||
|---|---|---|
| allow-hash-url.patch | failed | Failed: Failed to apply patch. Detailed results |

#1
You should re-roll the patch against HEAD, that is Drupal 7. If you need help making this happen, chime in.
#2
Free re-roll compliments of patch bingo.
Robin
#3
The last submitted patch failed testing.
#4
See: #335122: Test clean HEAD after every commit and http://pastebin.ca/1258476
#5
Seems like a reasonable idea, the last patch has tabs in though.