Solved

How do I increase the character limit for a link URL in Drupal 5?

Posted on 2014-07-29
2
310 Views
Last Modified: 2014-07-31
Hello fellow experts,

I know that Drupal 5 is no longer supported but nevertheless we still use it, I was wondering, how do you increase the character limit for a link URL?  

For example, I have an image that I would like to link to the following page;

https://web.cadca.org/eweb/DynamicPage.aspx?Action=Add&ObjectKeyFrom=1A83491A-9853-4C87-86A4-F7D95601C2E2&WebCode=ProdDetailAdd&DoNotSave=yes&ParentObject=CentralizedOrderEntry&ParentDataObject=Invoice%20Detail&ivd_formkey=69202792-63d7-4ba2-bf4e-a0da41270555&ivd_cst_key=00000000-0000-0000-0000-000000000000&ivd_prc_prd_key=D216853E-01EE-4F0E-80BE-BB9A3C64DA90

But when I place it in the URL field, it gets truncated to this;

https://web.cadca.org/EWEB/DynamicPage.aspx?Action=Add&ObjectKeyFrom=1A83491A-9853-4C87-86A4-F7D95601C2E2&WebCode=ProdDetailAdd&DoNotSave=yes&ParentObject=CentralizedOrderEntry&ParentDataObject=Invoice Detail&ivd_formkey=69202792-63d7-4ba2-bf4e-a0da412705  

Not including the remainder of the URL;

55&ivd_cst_key=00000000-0000-0000-0000-000000000000&ivd_prc_prd_key=D216853E-01EE-4F0E-80BE-BB9A3C64DA90

Any assistance would be greatly appreciated.
Darrell
Link---CADCA.jpg
Link---CADCA02.jpg
0
Comment
Question by:darrellajames
2 Comments
 
LVL 11

Accepted Solution

by:
Murfur earned 500 total points
ID: 40229260
It is most likely the character limit on the database column that is truncating the URL as you have 362 characters on the full url and 255 in the truncated version.

It is probably set to varchar(255) so increase that to varchar(500) or whatever number you think is a realistic maximum plus a bit of breathing space.

I don't think there is an actual limit per se for a URL but the limit is typically down to the browser application e.g. Internet Explorer won't take in more that 2083 characters but I have to say that I would be very surprised to encounter any URL that long let alone longer!
0
 

Author Closing Comment

by:darrellajames
ID: 40231658
Hello, thanks for the assistance, it worked like a charm, you are a major savor.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Read about how to choose the best possible content marketing agency to suit your needs. Content marketing has become an integral part of running a successful tech business, so it is wise to be informed.
This article will shed light on the latest trends when it comes to your resume building needs. For far too long, the traditional CV format has monopolized the recruitment market.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question