Hi @graphman,
Just curious if you are entering the URL manually and it is automatically populating it with the incorrect URL?
Thanks!
Automatically adds this address.
It’s wrong on the main page and right on everyone else.
How can I set this address for this page manually?
i have the same problem, where the canonical url on the search page is xxxx/journal/journal/search_page..
i try this https://wordpress.org/support/topic/modify-or-remove-canonical-created-by-all-in-one-seo/
For me, it’s work for remove the canonical url in search page. But, do you know how make the canonical url same with the url page search ?
Thanks for the link. But this, as I understand it, will remove the canonical link on all pages. And I need to fix only on the main page. Because on others it is true.
Hi @graphman,
Our Dev team is working on a solution for this issue.
In the meantime, please add the following code to your child/theme functions.php file or you can add it using the Code Snippets plugin.
Be sure to edit the URL to match your website.
add_filter( ‘aioseo_canonical_url’, ‘aioseo_filter_canonical_url’ );
function aioseo_filter_canonical_url( $url ) {
return str_replace( ‘https://www.mysitehere.com/blog/blog/’, ‘https://www.mysitehere.com/blog/’, $url );
}
Let me know if this works for you or if you have any questions.
Thanks!
> Our Dev team is working on a solution for this issue.
Please let me know when you are done.
In the latest version (4.2.0) this bug was never fixed