Is that possible to have longer URL support? As I can see in database that you only provided 128 characters in which many links I got is a lot more than you provided. (Change it to Text would be the best, I believe.)
Thank you,
Is that possible to have longer URL support? As I can see in database that you only provided 128 characters in which many links I got is a lot more than you provided. (Change it to Text would be the best, I believe.)
Thank you,
Comments
Comment #1
abx commentedI looked into the wrong table. You already provided 255 Max of Varchar. However, since Varchar under MySQL 5 can support longer than 255. I changed it to 900 in MySQL. Also, in your code with something about Maxlength to 900 also. Is that all I need to do or do I need to do something else?
Thanks,
Comment #2
HorsePunchKid commentedHi, abx. That's about all you should need to change for it to work properly.
For what it's worth, the internal path maxlength (
{url_alias}.src) is 128, so we're safely above that limit on{path_redirect}.pathat 255. However, using the same maxlength for{path_redirect}.redirectis cutting it close. For example, Google Maps routinely generates URLs that are within 20 or 30 characters of that limit. There's no reasonable upper limit, though, so I'm not sure how we'd pick the new maxlength.Comment #3
abx commentedHorsePunchKid, I don't have any problem with 128 max of internal path but with external path, I got a very long one. However, if it's about compatibility issue, I suggest you to leave it to what you already did. (255 - To make it works with MySQL 4.)
I can change a few things by myself just to satisfy my need :P
Thank you,
Comment #4
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #5
Anonymous (not verified) commentedDrupal 6 Solution
e.g.
<div><a href="LONG URL>{menu link title}</a></div>Note: If you don't wrap link in
<div>Drupal will wrap in<p>and add unnecessary margins.<block>and choose the Block from select menu at bottom.Done!
SuperDuperDan
www.superdorx.com