Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Cristian Antohe

    (@sareiodata)

    Hi,

    That is weird, as the demo site for TranslatePress is multi-site. https://demo.translatepress.com/

    However, it’s not setup to work with subdomains, so it could be a bug, dealing with the slug rewrites we’re doing.

    Is it possible to send me a link to one of the subsites? Perhaps we can figure out what’s causing it and try to replicate it locally.

    Please don’t send credentials via this public forum. Just a link.

    Hi,

    This is a child site page:
    https://goo.gl/2vN56j

    How do you prefer to send you login info?

    Plugin Author Cristian Antohe

    (@sareiodata)

    In the front-end it looked like it worked?

    Can you contact us via https://translatepress.dev/support/ and we’ll debug it further.

    I fixed the problem by adding this filter to my theme functions.php file:

    
    add_filter('trp_curpageurl', 'correct_trp_current_page_url', 11);
    function correct_trp_current_page_url($pageURL) {
        return home_url() . $_SERVER["REQUEST_URI"];
    }
    

    It seems your current page url function has a problem, try to replace it with mine.

    Plugin Author Cristian Antohe

    (@sareiodata)

    Thank you for sending this over. The curpageurl function is on our todo list to refactor.

    We should always default on the WordPress site_url, not on server parameters.

    I found this, it seems better to get the current url with WP standards

    
    global $wp;
    $current_url = home_url(add_query_arg(array(),$wp->request));
    
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Network support’ is closed to new replies.