Our new site built with Drupal 7: http://www.girlscoutsmoheartland.org
When you click on a link, it'll change to that URL. But then sometimes you'll click on a link, and it'll keep the old URL and then just tack the rest at the end.

For example, if you go there and click on one of the main links like: "for Volunteers", you go to:
http://www.girlscoutsmoheartland.org/content/volunteers

But then click on a menu item on the right side, like "Get more info," and it make it:
http://www.girlscoutsmoheartland.org/content/volunteers?q=content/intere...

It works, it goes there, but I'm afraid that people might be making bookmarks or copying links for URLs that aren't really the optimum and future-trouble-free.

What's causing this and, more importantly, how do I fix it?
Thanks,

Comments

nevets’s picture

It looks like node 99 has those links in html and that link looks like

<a href="?q=content/interest-form"><img width="145" height="36" alt="" src="/?q=sites/default/files/styles/medium/public/Get%20More%20Info.png&amp;itok=SDa8yASW" class="image-medium"></a>

so the fix would be to change the html so href="?q=content/interest-form" is href="/content/interest-form"

liamgsmh’s picture

I see. Well, OK then. Tedious, but if it works. :)
Thanks for the clue. :)

liamgsmh’s picture

Too bad I can't go a global find/replace of "?=" to "/" like I can will a non-database-based site. :(

nevets’s picture

Well since that seems to be the body of the node you could use sql to do a global replace.

yelvington’s picture

Turn on clean URLs and clear cache.

liamgsmh’s picture

I have Clean URLs on, and I just cleared cache again to see... but it still does it.

liamgsmh’s picture

Actually, come to find out, it looks like I CAN'T use Clean URLs! When I do, it breaks this calendar app:
http://www.girlscoutsmoheartland.org/?q=content/activity-calendar
so that it messes up the GET info in the URL and leads to a 404. But works fine without CleanURLs. :-/