Support » Plugin: Polylang » [Plugin: Polylang] Url parameters for static front page

  • Resolved uudens

    (@uudens)


    Hello,

    I am using a static page as front page. This page’s slug is home so when I open myproject.com it redirects to myproject.com/home/.
    Everything works great so far, however I need to pass URL parameters to this page.
    When I try to open, for instance, myproject.com/home/?foo=bar it redirects me to myproject.com/home/ and I can’t acces the URL parameters.
    Could anyone suggest a fix or a workaround?

    Thanks!

    http://wordpress.org/extend/plugins/polylang/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chouby

    (@chouby)

    This is a bug. Try this:
    Edit the line 533 in polylang/include/core.php and replace:

    return $requested_url == home_url('/') || $requested_url == $this->page_link('', get_option('page_on_front')) ? false : $redirect_url;

    by:

    return $requested_url == home_url('/') || strpos($requested_url, $this->page_link('', get_option('page_on_front'))) !== false ? false : $redirect_url;

    uudens

    (@uudens)

    Your fix works perfectly, thanks!
    It’s great that You are providing good and fast support for this plugin. Good luck!

    Plugin Author Chouby

    (@chouby)

    Thanks for your feedback. I introduced the fix in the development release and it will be included in v0.9.2

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Polylang] Url parameters for static front page’ is closed to new replies.