WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Home breadcrumb link is incorrect (3 posts)

  1. Troy Chaplin
    Member
    Posted 1 year ago #

    I have several sites that are installed in a separate directory. In the past, the first part of the breadcrumb for the homepage functioned fine, but with a more recent version the home text now links to the installation directory instead of the blog homepage.

    I don't see anything in the plugin settings that have change, or that could be changed to fix this problem. I am using the basic function for loading the plugin, no additional customization, so it reads as the following in my theme files:

    <?php if ( function_exists('yoast_breadcrumb') ) {
    yoast_breadcrumb('<p id="breadcrumbs">','</p>');
    } ?>

    Has anyone else come across this problem already, or does anyone have any suggestions on what this issue could be?

    Thanks

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Troy Chaplin
    Member
    Posted 1 year ago #

    Ok, I've found where this problem is coming from. In class-breadcrumbs.php on line 73 the URL is set to get_site_url, which would get the path to where WordPress is installed.

    I tested changing this to get_blogingo('url') instead, and it fixed these issues.

    I would not recommend that anyone edit this file, I will reach out to Joost and let him know, he may have other reason this is coded that way, and there may be a better solution to fixing the issue.

  3. lcf
    Member
    Posted 1 year ago #

    replace it to get_home_url() will solve it too.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic