Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2014-07-29
2
Medium Priority
?
360 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:Darrell James
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:Darrell James
ID: 40231658
Hello, thanks for the assistance, it worked like a charm, you are a major savor.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

There is a massive demand for content on the web right now, and it doesn't look like it's going to stop any time soon. But, if you are running a business blog, it's not just enough to offer your audience lots of content. It needs to be high-quality…
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

579 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