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

abx’s picture

I 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,

HorsePunchKid’s picture

Status: Active » Fixed

Hi, 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}.path at 255. However, using the same maxlength for {path_redirect}.redirect is 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.

abx’s picture

HorsePunchKid, 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,

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Anonymous’s picture

Drupal 6 Solution

  1. Install module Menu Inject Block
  2. Create new Block
  3. Add menu link to Body:
    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.
  4. Create Menu Item
  5. Set path to <block> and choose the Block from select menu at bottom.

Done!

SuperDuperDan
www.superdorx.com