?
Solved

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

Posted on 2014-07-29
2
Medium Priority
?
336 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
Murfur earned 2000 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

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

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.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

762 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