By GlWy on
Hi,
I encountered the following problem. I want to create a new menu item and link it to an external url. The url is quit long (it's a search criteria for another site), exceeding the max length of the textfield in menu settings where I need to enter the path.
In order to increase the length, do I need to alter the column size in the database? Change anything in any code?
or is their an easier way?
thanks
Comments
How long is the URL? You
How long is the URL?
You could look at using the url redirect module. You would create your URL (mysite.com/go-elsewhere) and set the redirect to where you want to go. Then in your menu you use your URL.
Best solution I have encountered
Drupal 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!
Core issue exists
The core issue for this is #288946: Increasing path length to 255 chars.