• Hi there,

    I am using your plugin with WPML and I activated breadcrumbs functionality. I found an issue with post URL, in JSON.

    For example, it returns:

    {
                "@type": "ListItem",
                "position": 4,
                "item": {
                    "@id": "https://example.app/it/it/my-post-slug/",
                    "name": "My Post Title"
                }
            }

    As you can see, in the URL we have twice /it

    I solve in this way:

    – file wp-structuring-short-code-breadcrumb.php
    – line 76: $current_url = esc_url( site_url() . $_SERVER['REQUEST_URI'] );

    Is it possible to substitute home_url() with site_url() for you?

  • The topic ‘WPML – Wrong Home URL’ is closed to new replies.