By pluginamp on
One simple question I'll bet somebody can answer quickly - how does one link an item in Drupal to an outside URL? I created some menu items that I assumed would link to outside URLs that are in my (non-Drupal-connected) website, but they won't link. They say I need a node. Can you tell me where I should go to make a link (hyperlink)?
Comments
Menu Items?
Are these links included in menu items being created by menu.module?
If so you must fill in the path field with a URL beginning with http:// if it is not a Drupal hosted node on your local site.
For example, to link to drupal.org I would enter http://drupal.org or http://www.drupal.org as my path.
how do I link to something outside of Drupal?
Hi DVkid,
thanks for writing back! But what you suggest is exactly what I did, and still nothing. Yes, they're menu items created by menu.module. It asks for the "Drupal path this menu item links to," so I'm a bit worried that it needs to be based in a Drupal node - but I don't know how to do that, and the website I need to link it to is already set up. So yes, I started it with http:// - but it doesn't link to anything. It simply says "Page not found." And the page is definitely there - but Drupal won't find it for me. Help!
how do I link to something outside of Drupal?
A bit more information:
when I get the "Page not found" message, I look up at the URL, and I see this:
my Drupal website address, followed by ?q=, followed by the URL that I WANT to link to.
Can you give us the url of your site?
I strongly suspect it is a config problem. My test site accepts outside links in the menus without problems.
Marginally, if you trust us enough, you can give us a temporary admin account to your site's backend so the problem could be pinpointed.
Known issue
When clean URLs are disabled one cannot link to external sites via the menu.
See for example
http://drupal.org/node/10888
http://drupal.org/node/36216
The solution (for now) is to enable clean urls.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
Strange...
My site does not have clean url enabled, and yet I can link to outside menus. See here (First menu on the left called "Test External Link")
Edit: I am using 4.6.5, if that is any indication
Version
I hadn't tested it with 4.6.5 yet, but observed the behaviour earlier (4.6.3). It's indeed fixed in 4.6.5.
@OP Do you run a version < 4.6.5 ?
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.
LOL
Heine, my edited post came in at the same time as your reply.
Apologies for the digression
External Link not working in 4.6.6
Drupal 4.6.6 version:
As Lily Tomlin would say - Never Mind! LOL
Take Care, Sharon
what about javascript links?
I am wondering if it is possible to have a menu link in 4.7 have the href:
javascript:alert("under construction");
or something like that...
-rich