Solved

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

Posted on 2014-07-29
2
294 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The viewer will learn how to dynamically set the form action using jQuery.
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 …

758 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now