Jump to content
uliverse

Start page in multi-language environment

Recommended Posts

Hi,

this seems to be an obvious question asked a million times, but somehow I can't find what I am looking for.

I have a site set up with two languages. Now I simply want to link the logo to the home page. The problem is that I only manage to link to the root page (with $config->root->url), which means visitors are always sent to the default language home page, not to their native language home page. How can I change that? Any clues??

Share this post


Link to post
Share on other sites

You need to target a specific page, in this case the Home:

$pages->get(1)->httpUrl

This will get the page on the language the user is browsing the site, which is what you need I guess.

  • Like 2

Share this post


Link to post
Share on other sites
53 minutes ago, tpr said:

You need to target a specific page, in this case the Home:


$pages->get(1)->httpUrl

This will get the page on the language the user is browsing the site, which is what you need I guess.

Yes!!! That's exactly what I needed. Thank you! I am surprised that this has not been asked before... or I just didn't find it.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...