1

I have setup 10 languages for a project which are all working fine when accessed directly, eg 'craft.dev/fr/page','craft.dev/zh/page','craft.dev/es/page'.

However when in admin there are two ways of previewing the translated content. Side by side preview shows the translation fine and uses an admin URI with the locale on the end of the admin url. But if you external preview the local is not in the URL so throws a 404.

Is this a missing feature or a config issue? I was expecting the locale to appear in the external url

Update

My config looks like

'siteUrl' => array(
    'en' => 'http://craftyCMS.dev/en/',
    'ar' => 'http://craftyCMS.dev/ar/',
    'zh' => 'http://craftyCMS.dev/zh',
);

Share link never has the locale in it.

  • Please post your second question in a new Q&A thread, thanks! (You can access what you originally typed here.) – Brandon Kelly Oct 8 '15 at 18:30
2

If you define your base site URLs using the siteUrl config setting (using the array syntax), then clicking the “Share” button should bring you to the appropriate locale’s URL.

  • Thanks Brandon - will repost 2nd Q My config looks like code 'siteUrl' => array( 'en' => 'craftyCMS.dev/en', 'ar' => 'craftyCMS.dev/ar', 'zh' => 'craftyCMS.dev/zh', ); code Share link never has the locale in it – joomkit Oct 8 '15 at 20:26
  • 1
    And those locale IDs are exactly the same as the locale IDs in Settings > Locales? – Brandon Kelly Oct 8 '15 at 21:01
  • Yes they are all their. But i think i am being stupid now - are all my routes/urls for a section meant to have the locale in the 'Entry URL Format' list per language. This makes it work [slaps head] – joomkit Oct 9 '15 at 16:22
  • No, they shouldn't. Can you please send in a support ticket from your Dashboard, so we can take a look at the site and see what's going on? – Brandon Kelly Oct 9 '15 at 16:58
  • SOLVED: i had a collapsed return array that was empty hiding in my IDE [facepalm] once removed then it all works as expected. Thanks for the support – joomkit Oct 15 '15 at 15:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.