WordPress.org

Support

Support » Plugins and Hacks » Qtranslate Slug » Home link is not working

Home link is not working

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have the same problem, but only with a template, all the other work. Maybe it’s a problem with the template? Appearance solutions too 🙂

    Hello, I have this problem when I use custom permalink. When permalink is set to /%postname%/ all works ok in all languages. But when I set it like this /blog/%postname%/ home page (static front page) work only with default language. In another language which have prefix for example /en/ it give me 404 page Please help me with this problem.

    Hi, I resolve this problem with this snippet

    if ( count( $query ) == 1 && isset( $query['error'] ) )
    	unset( $query['error'] );

    copy it to filter_request function in qtranslate-slug.php before

    // -> home url
    if ( empty($query) ):
    	$function = 'home_url';
    	$id = '';
    endif;

    So it should be like this

    // -> home url
    // fix if you are using custom permalink (for example/blog/%postname%)
    if ( count( $query ) == 1 && isset( $query['error'] ) )
    	unset( $query['error'] );
    
    if ( empty($query) ):
    	$function = 'home_url';
    	$id = '';
    endif;

    For now I don’t test it so much. If I’ll have some issue with this, I post it here.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Home link is not working’ is closed to new replies.
Skip to toolbar