I found out that Drupal destroys links which contain nuber signs and thus makes it impossible to use links to a certain place on a page.
I have fixed this by replacing the following passage (line 2460) in drupal.inc.
return str_replace(array('%2F', '%26', '%23', '//'),
array('/', '%2526', '%2523', '/%252F'),
rawurlencode($text));
with
return str_replace(array('%2F', '%26', '%23', '//'),
array('/', '%2526', '%2523', '/%252F'),
str_replace("%23", "#", rawurlencode($text)));
Please review this patch and include it in the next Drupal version.
Comments
Comment #1
robertdouglass commentedPlease include instructions on how to recreate the bug.
Comment #2
wmnnd commentedThe bug occured together with taxonomy_redirect and when I entered a link with a "#" in a block.
Comment #3
robertdouglass commentedYou will have a hard time getting a review of this patch without rolling a real patch, I'm afraid.
Comment #4
wmnnd commentedmhm ... no one to comment on this?
Comment #5
andreiashu commentedWishMasterNND I think robert is right: you won't have many reviewers because of the lack of a real patch and the lack of a real no-module-required replication method of this bug.
Have you considered that maybe the problem comes from taxonomy_redirect ?
Comment #6
dave reidWe need actual 'steps' to reproduce the problem so we can determine if it is a core bug or a taxonomy_redirect bug.
Comment #7
wmnnd commentedWhat steps would you need?
You might just try it with taxonomy_redirect - I'm not so into Drupal's code that I could really know what's wrong here, but doing the change I posted above actually resolves the problem.
Comment #8
wmnnd commentedIt's still there in the current Drupal version ... what else info do you need?
Comment #9
wmnnd commentedIt's now in "common.inc", btw.
Comment #10
dave reidThere is no patch to review. I have a feeling taxonomy_redirect should be smarter and 'split' the input provided up so that it can properly use parameters with url(). In this case, it should be passing a 'fragment' value in the $options parameter.
Comment #11
dpearcefl commentedIs this still an active issue?
Comment #12
Anonymous (not verified) commentedNo response from OP, closing.