Remove lang url /en

Discussion in 'Real Estate Classifieds Script' started by jeff.p, Dec 20, 2014.

  1. jeff.p

    jeff.p New Member

    If I activate language switcher by default sites urls have /en added which I can't have because Google would beat me with a large stick.

    How can I remove the /en for default english, when the switcher is activated?

    Thanks
  2. Vasily_B.

    Vasily_B. Project Manager

    Hi Jeff,

    Please try the following instructions:

    file to modify: includes/classes/ia.core.php

    find this code:
    PHP:
    define('IA_URL_LANG', $languagesEnabled ? $iaView->language . IA_URL_DELIMITER : '');
    change it to the following:
    PHP:

    define('IA_URL_LANG', $languagesEnabled && $iaView->language != $this->get('lang') ? $iaView->language . IA_URL_DELIMITER : '');
     
    This should work. At least it is working fine for me here, on my test installation.
  3. jeff.p

    jeff.p New Member

    Hi Vasily,

    That worked great thanks.

    Just that on the property categories menu top, the links don't work when on the italian lang.

    Is it because there are no system links through a menu?
  4. jeff.p

    jeff.p New Member

    Any ideas on this?
  5. Vasily_B.

    Vasily_B. Project Manager

    Hi Jeff,

    Sorry this seems to be a non-common issue. I've asked @Ernest_S. to take care of this request.

    Thanks for your patience.
  6. Ernest_S.

    Ernest_S. New Member

    Hi Jeff,

    We have details of your website and fixed this bug. Please check it.
    Vasily_B. likes this.

Share This Page