Max Query Length

sbarsky - March 7, 2008 - 18:07
Project:Path Redirect
Version:5.x-1.x-dev
Component:User interface
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm using this Module in order to set up a short URL to give out to incoming ads and/or e-letter campaigns and have the link tracked via Google Analytics.

I discovered that there is a limit of 50 characters that can be in the Query segment (after the "?")

i.e. I have www.example.org/test with a path redirect to

?utm_source=key1&utm_medium=key2&utm_campaign=key3 (49 characters used here.)

As a work-around, I changed my keywords to fit within this limit. But if more tracking options are used, or longer keywords the limit will easily be reached. See http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55578 for more details on the GA URL builder.

Can the max character length be made longer?

Thanks in advance.

#1

HorsePunchKid - March 8, 2008 - 01:38
Version:5.x-1.1» 5.x-1.x-dev
Status:active» needs review

Very reasonable request. This patch bumps it up to 255. I realize that URLs can get longer than that, but I've never seen a practical limit determined, and this is a nice, standard number.

AttachmentSize
path_redirect-5.x-1.x_querylength_1.patch 2.35 KB

#2

HorsePunchKid - March 8, 2008 - 01:52
Status:needs review» reviewed & tested by the community

Of course, it would help if the admin interface would allow more than 50 characters, too. Patch for 6.x included, too; make sure you get the right one.

AttachmentSize
path_redirect-5.x-1.x_querylength_2.patch 2.9 KB
path_redirect-6.x-1.x_querylength_2.patch 1.67 KB

#3

HorsePunchKid - March 8, 2008 - 02:10
Status:reviewed & tested by the community» fixed

I tested these out again, going through the upgrade process, and they seem to work fine. I went ahead and committed them.

#4

sbarsky - March 10, 2008 - 18:56

Thank you!

#5

Anonymous (not verified) - March 24, 2008 - 19:01
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.