ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Search URL issue with MSM

October 08, 2010 4:00pm

Subscribe [5]
  • #1 / Oct 08, 2010 4:00pm

    Benjamin Riege

    12 posts

    Hi there,


    I have a problem with the search URL passing on my german language site using MSM.
    The global version works nice, but the german version always puts the entire site url in front.

    http://www.domain.com/de/http://domain.com/de/suchen/ergebnisse/609b529d44a4fe2a17d30e51a5e7c4ad/

    Version: 2.1.0
    Build: 20100810


    Happy Weekend
    RSIDUS

  • #2 / Oct 09, 2010 2:34pm

    Greg Salt

    3988 posts

    Hi RSIDUS,

    Are you using the EE search (simple of advanced) tags in your template or have you built your own search form? Is the German site a separate MSM one or are the languages all served from one site? Can we see where this is happening?

    Cheers

    Greg

  • #3 / Oct 11, 2010 6:33pm

    Benjamin Riege

    12 posts

    Hi Greg,

    at the moment, I have two languages served from one site with MSM using the Multi language site alternative for EE2.

    My template code looks like this:

    {exp:search:simple_form result_page="suchen/ergebnisse" search_in="entries" channel="..."}

    Cheers
    RSIDUS

  • #4 / Oct 12, 2010 3:07pm

    Ingmar

    29245 posts

    What happens if you leave out the result_page= parameter? Have you configured your secondary site’s URL and path settings correctly?

  • #5 / Oct 21, 2010 2:10pm

    Benjamin Riege

    12 posts

    Almost the same happens without result_page:

    <a href="http://www.domain.com/de/http://domain.com/de/search/results/someid">http://www.domain.com/de/http://domain.com/de/search/results/someid</a>

    The secondary site’s index.php looks like this:

    $assign_to_config['template_group'] = '';
    $assign_to_config['template'] = '';
    $assign_to_config['site_index'] = 'http://domain.com/de/';
    $assign_to_config['site_404'] = '';
    $assign_to_config['global_vars'] = array(
        "country_code" => "de",
        "language" => "deutsch"
    ); 
    $assign_to_config['site_name'] = 'de';
    $assign_to_config['cp_url'] = 'http://domain.com/system/';
    $assign_to_config['site_url'] = 'http://domain.com/de/';
  • #6 / Oct 22, 2010 4:21am

    John Henry Donovan

    12339 posts

    RSIDUS,

    $assign_to_config['site_index'] = 'http://domain.com/de/';

    This is your problem I believe. Normally this would be index.php but as you are removing it via htaccess you can just comment out this line.

  • #7 / Oct 22, 2010 12:52pm

    Benjamin Riege

    12 posts

    John, you are my hero. THANK YOU.

    Have a nice weekend!

  • #8 / Oct 22, 2010 12:57pm

    Sue Crocker

    26054 posts

    Glad John was able to help. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases