Results 1 to 5 of 5

Thread: Current language url

  1. #1
    New user
    Join Date
    09-16-09.
    Posts
    8

    Default Current language url

    When using changelanguage module the current language seem to have empty url assigned. It'd be great if it had any link (to main page or to current) but in same language. Now if user is in secondary language and clicks corresponding flag is redirected to root / and gets the fallback language. Is there any way to change it or a chance to get it with next update?
    Thanks!
    www.zolnierze-hardkoru.pl powered by typolight

  2. #2
    Official Contao Team andreas.schempp's Avatar
    Join Date
    06-10-09.
    Posts
    62

    Default Re: Current language url

    Normally the current language does not have a link. Have you changed that in the template?
    terminal42 gmbh
    We are Contao Premium-Partner! For Isotope eCommerce support check out the Isotope Circle.

  3. #3
    New user
    Join Date
    09-16-09.
    Posts
    8

    Default Re: Current language url

    In template the part for each language (current and all other) is exactly the same without any conditionals. In language array there's just no url provided for current language page.
    www.zolnierze-hardkoru.pl powered by typolight

  4. #4
    Official Contao Team andreas.schempp's Avatar
    Join Date
    06-10-09.
    Posts
    62

    Default Re: Current language url

    As far as I remember, there is an "active" parts, isn't it?
    terminal42 gmbh
    We are Contao Premium-Partner! For Isotope eCommerce support check out the Isotope Circle.

  5. #5
    New user
    Join Date
    09-16-09.
    Posts
    8

    Default Re: Current language url

    Yes, there is, but it's not the point. The 'href' part (or array index to be more precise) is always empty for active language. Never mind, I'll get to it other way.
    www.zolnierze-hardkoru.pl powered by typolight

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •