ampersand troubles

peterzoe - April 20, 2008 - 22:26
Project:Node Type Filter
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:NancyDru
Status:by design
Description

Hi there,

I have clean url's enable and encounter a lot of trouble with the ampersand in front of 'type=nodetype'. instead of %26 (urlencoding for &) i get %2526 which seems to be coming from the % being translated after the first encoding (compare http://drupal.org/node/119876).
any ideas of how I could get rid of this? would it be possible to get a solution for this into the module?

cheers, Peter.

#1

NancyDru - April 21, 2008 - 13:40
Assigned to:Anonymous» NancyDru

I'll have to see I can do anything.

#2

NancyDru - May 14, 2008 - 01:10
Status:active» postponed (maintainer needs more info)

I've been looking at this off and on, and it finally dawned on me that this is not the fault on NTF. The problem lies with who ever is using it and producing the URL. And, BTW, all my modules use a question mark ("?") before the "type=", an it is not encoded.

#3

peterzoe - May 14, 2008 - 07:42

Nancy, I think you're perfectly right, this is not a NTF fault. I was just wondering how others get along with this issue. I found a workaround in using absolute (and not relative) paths calling up NTF but from my point of view this is not really nice.
I also tried to use the '?' (among other trials) upfront, but it didn't help for me (with clean url enabled).
Don't you encouter this problem at all? what do you do differently than me?

#4

NancyDru - May 14, 2008 - 12:43

I tried it with Taxonomy Browser and no, the = did not get converted -- but the comma between terms did.

BTW, TB invokes it like this:

return array('taxonomy/term/'. $str_tids, 'type='. $node_type);

#5

NancyDru - June 25, 2008 - 16:01

The Drupal powers-that-be seem to think this is not an issue. http://drupal.org/node/272962

#6

NancyDru - September 16, 2008 - 16:23
Status:postponed (maintainer needs more info)» by design
 
 

Drupal is a registered trademark of Dries Buytaert.