<script>
// Check if the current page URL matches the specific URL
if(window.location.href === 'Your page URL') {
// Find and update the canonical tag
var canonicalTag = document.querySelector('link[rel="canonical"]');
if(canonicalTag) {
canonicalTag.setAttribute('href', 'Your page URL');
}
}
</script>
// Check if the current page URL matches the specific URL
if(window.location.href === 'Your page URL') {
// Find and update the canonical tag
var canonicalTag = document.querySelector('link[rel="canonical"]');
if(canonicalTag) {
canonicalTag.setAttribute('href', 'Your page URL');
}
}
</script>