Hi everyone,

I'm using localizer 5.x-3.3 and Pathauto.
Everything works perfectly except for the Primary and Secondary menu.
None of them have the .active class when I'm in the node. Wether it be the orignial node or the translated node.

If I manually add the language abbreviation in url_alias.src in the database, it works.

Has anyone else had this issue before?
Am I doing something wrong?

Comments

teebo’s picture

Thanks for the reply.

Here is the link to the website: link

teebo’s picture

Can anyone help??
I'm not the only one with this issue apparently: http://drupal.org/node/233694

Thanks in advance for any help provided.

teebo’s picture

I found a solution.

Thanks to this note: http://drupal.org/node/41629#comment-364435

It's a dirty solution because you have to modify common.inc; but it does the job (until a real fix can be found).

Line #1275 in common.inc; replace:
if (($path == $_GET['q']) || ($path == '<front>' && drupal_is_front_page())) {
By
if (($path == $_GET['q']) || ($path == '<front>' && drupal_is_front_page()) || (drupal_get_normal_path(i18n_get_lang(). "/". $path) == $_GET['q'])) {