[support] hardcoded links in menu

Marty Landman mlandman at face2interface.com
Sun Feb 13 02:34:30 UTC 2011


So far I've identified them in the menus. Found several dozen on the 
link_path column of the menu_links table as per my OP below.

Marty

At 03:32 PM 2/12/2011, Ryan LeTulle wrote:
>Are the links in the content? Menus? or Anywhere?
>
>Ryan LeTulle, Web Developer
>
>personal: <http://www.bayousoft.com>bayousoft.com
>twitter: <http://twitter.com/bayousoft>@bayousoft
>
>
>"Be the change you want to see in the world."   Mahatma Gandhi
>
>
>
>
>
>On Sat, Feb 12, 2011 at 2:29 PM, Marty Landman 
><<mailto:mlandman at face2interface.com>mlandman at face2interface.com> wrote:
>Working on a website where dozens of links have been hardcoded. This
>is causing a problem because someone logged onto 
><http://marty.com>marty.com may
>inadvertently click a link for <http://www.marty.com>www.marty.com, 
>or vice versa, and gets
>an access denied message.
>
>Now my first question is, is this normal Drupal behavior, or is there
>a place for me to specify something presumably with how cookies are
>set to make this not even be a problem? Or is it not even Drupal,
>just the way cookies work? I'm assuming that cookies are the root
>cause of the access denied issue.
>
>Secondly though I wanna change all these links in the
>menu_links.link_path which say something like:
>
><http://www.marty.org/?q=node/7>http://www.marty.org/?q=node/7   or
><http://org/node/?q=node/13>http://org/node/?q=node/13
>
>to simply say /?q=node/7 and /?q=node/13.
>
>Two questions on that:
>
>1. is this the only change required for this issue?
>2. am I right in thinking this can only be done programmatically ie.
>there's no way to put together a one line mysql update query that'll work?
>
>Thanks in advance,
>Marty
>
>
>--
><http://www.face2interface.com/>http://www.face2interface.com/
>https://addons.mozilla.org/af/firefox/addon/181910/
>
>--
>[ Drupal support list | <http://lists.drupal.org/>http://lists.drupal.org/ ]
>
>
>--
>[ Drupal support list | http://lists.drupal.org/ ]



More information about the support mailing list