I'm using i18n -- and it's all going very well -- except for a url tangle that happens with the front_page module and url aliases. I have a custom front page -- using "Full" in the front_page settings. So here is what happens:

1) You are on an English page and click Spanish to view it in Spanish. The URL changes from www.site.com/en/page to www.site.com/es/page. The "Home" link in the breadcrumb changes to "Principal." That's all fine.

2) If you click on "Principal" it takes you to www.site.com/es/frontpage, which looks just like www.site.com/en/frontpage because of the front_page module.

3) Then, when one clicks on one of the links on the English-reading front page, it brings them to a page with this url: www.site.com/en/es/page. As you could guess, that leads to a schizophrenic page -- the content is in English and the Navigation is in Spanish! Ack!

I installed the globalredirect module, which helps get things back on track (before I was occassionally and inexplicably getting non-aliased urls which would throw it all off in a different way), but it doesn't solve this problem.

I've spent a day searching the board for a solution, but haven't found anything yet! I'm thinking the solution has to do with making different page for en/frontpage and es/frontpage -- but I don't know how to do that with a custom front page. I don't think front_page can be included as a language-dependent variable in the template (please correct me if I'm wrong!) Ideally I'd like to have these two versions of the front page.

I appreciate any help! I am very impressed with this module so far.

Comments

mndonx’s picture

For what it's worth, under #3, I meant the url changes to www.site.com/es/en/page not www.site.com/en/es/page.

Thanks!

mndonx’s picture

Oh, and it looks like I haven't solved the problem of aliased urls getting "node" thrown into them. If I click around, I'll occasionally come to a page that looks like this: www.site.com/es/node/page/page -- of course it throws up an error page, but I can get out of it and back on track pretty quick. Just annoying and I don't know how to fix it.

mndonx’s picture

Wow - okay, I think I solved it. I added 'front_page_text' to my list on i18n variables in my settings file and customized the front page html in the english admin section and spanish admin section.

Took a little finessing, but it works like a charm now.

http://drupal.org/node/67824