I feel this issue has to been solved already but just can't find it. Lots of flavours of i18n and paths issues posted but not quite mine is discussed:
I have a page view with path set to site/foo/%/% where % are arguments for the foo view.
When I select a different language with the language switcher whilst in the view page, the path changes to site/es/foo/%/% (when selecting Spanish) and then a "Page Not Found" (404) page appears.
I only want the said path to give the same view page as when the site default language is set (with no prefix).
Can this be done without playing with aliases or path modules?
Thank you
Comments
Comment #1
Jerome F commentedThere are a lot of issues discussing this try this one:
http://drupal.org/node/244162#comment-806321
I had to go to: admin/config/regional/language/configure
and check URL Determine the language from the URL (Path prefix or domain).
It's not checked by default, and I had many 404 errors everywhere before.
Let us know if this fixes your issue
Comment #2
Anonymous (not verified) commentedI don't have this option in my drupal install... the path gives me a 404.
Does this have something to do with the Region Manager module? http://drupal.org/project/region_manager
Thank you
Comment #3
Jerome F commented@naoise: Sorry my bad, this is the path for Drupal 7.x.
Just check that if you use the "Path prefix only" option. And make sure English is not missing its prefix 'en', after you changed the default language to another language.
So, that way you will have site/es/foo/%A/%B and site/en/foo/%A/%B and the arguments will remain the same for your view.
If you don't use the prefix for the default language, the urls won't be consistent (assuming site/foo/%A/%B => site/es/foo/%A/%B) and I think that perhaps the argument %A will have a value of "foo" and argument %B will have %A's value, and %B will be missing. Because the arguments are not at the same place in the URL.
Comment #4
vsalvans commentedThanks this "silly thing" helped me a lot!
Comment #5
esmerel commented