I am using Google Chrome to inspect the first element of a menu block I placed into the left sidebar of a page. The current page of the browser is "http://es.raystedman.biz/daily-devotions".

The <a> tag created by menu_block looks like this:

<a href="es.raystedman.biz/daily-devotions/mark" title>Mark: The Servant Who Rules</a>

Chrome sees the target of this <a> tag as "http://es.raystedman.biz/es.raystedman.biz/daily-devotions/mark" when I hover over the hyperlink created by the <a> tag. This is true with IE9 as well. If I place "http://" at the beginning of the <a> tag like this:

<a href="http://es.raystedman.biz/daily-devotions/mark" title>Mark: The Servant Who Rules</a>

everything works well. I suggest adding "http://" to the beginning of the target address might be the solution to this issue.

Great module! Thanks, Greg

Comments

dman’s picture

Doesn't look like menu_block too me. Your entire site is doing that right now (all generated links).

I suspect you have set $base_url to just your hostname es.raystedman.biz, not an actual URL http://es.raystedman.biz .

Usually you can avoid setting $base_url at all, but if you are going to hard-code it, make sure it's an URL.

Greg Sims’s picture

This is a fresh install of 7.12 and $base_url is not set at all. I created this install to test multiple languages in Drupal 7. The base url of the site is raystedman.biz which is English. The es.raystedman.biz domain is for the Spanish translation of the site. This means that the site will have several base urls -- one for each language translation.

Please note that the menu on the left side of http://raystedman.biz/daily-devotions works well.

Greg Sims’s picture

Status: Active » Closed (works as designed)

OK dman -- You are correct. I changed the domain elector for Spanish to "http://es.raystedman.biz" and all is OK. I will do this for additional languages as well. This issue is now closed.