Canonical Url does not change

#65805
  • Resolved Pro Carmanuals
    Rank Math free

    I wanted to change the canonical link, but could not.
    All already created posts do not allow you to change the canonical link.
    When creating a new post, I can specify an arbitrary canonical link, but after saving it does not change.

Viewing 15 replies - 1 through 15 (of 24 total)
  • Hi,

    Thanks for getting in touch with us.

    Here is how you can change the canonical tag in Rank Math:
    https://i.rankmath.com/z83lRN

    If you are not seeing the advanced tab, please enable the advanced mode from WordPress Dashboard > Rank Math > Dashboard:

    If the URL is not remaining saved for some reason, please record a screencast using loom.com so we can check.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Attached screen recording.
    Canonical link does not change

    Hi,

    I am not sure how you are adding that column for changing the canonical URL in the post listing screen but it is not a feature we offer by default so we cannot offer support for that.

    Please add canonical like I showed you in the screencast and let us know if it doesn’t work.

    Thank you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    updated video

    Hi,

    Did you clear the cache and do a hard refresh before checking?
    Windows: Ctrl + F5
    Mac/Apple: Apple + R or command + R
    Linux: F5

    If that doesn’t work, we might need to take a closer look at the settings. Please include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Thank you for contacting the support and sorry for any inconvenience that might have been caused due to that.

    I have created a test-post with Rank math enabled with your theme and the canonical updates fine, please check the screencast in the sensitive section.

    Assuming you are using the latest version of all the plugins and the themes (please update if not yet), it would seem like a conflict with one of the plugins or the theme you are using.

    To determine that, please follow this troubleshooting guide:
    https://rankmath.com/kb/check-plugin-conflicts/

    Please let us know if you find the culprit.

    Only the site admin would know and your users won’t be affected by this troubleshooting.

    Looking forward to helping you.

    Classic Editor – why not tested in it?

    Alberto
    Rank Math business

    Hello,

    I am trying to log in now to check it in the classical editor but it is requesting an authorization code, could you check it?

    Looking forward to help you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    found the problem:

    add_action( 'rank_math/frontend/canonical', function( $url ) {
    	if ( ! is_singular() || ! is_category() || ! function_exists( 'better_amp_get_canonical_url' ) ) {
    		$url = better_amp_guess_none_amp_url();
    		return $url;
    	}
    	$custom_url = RankMath\Post::get_meta( 'canonical_url', get_the_ID() );
    	if ( $custom_url ) {
    		return $custom_url;
    	}
    	return better_amp_get_canonical_url();
    });

    This code was provided to me for solving problems with the AMP plugin. The canonical link was set up incorrectly.
    If you delete it, then the links are not correct for the AMP pages, but the problem with the AMP page has returned.

    Hello,

    Thank you for the update.

    I have forwarded this to the dev team for further investigations.

    Looking forward to helping you. Thank you.

    ​​​​​​

    When to wait for a solution to a problem?

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 15 replies - 1 through 15 (of 24 total)

The ticket ‘Canonical Url does not change’ is closed to new replies.