Mobile app version of vmapp.org
Login or Join
Nickens628

: Canonical link element on single page app I have a single-page app, i.e. page navigation and url changes happen with javascript, rather than full page loads. Additionally, occasionally multiple

@Nickens628

Posted in: #CanonicalUrl #RelCanonical #Seo #SinglePageApplication

I have a single-page app, i.e. page navigation and url changes happen with javascript, rather than full page loads.

Additionally, occasionally multiple variants of a url point to the same underlying page. So, I'd like to add canonical link elements to define which url is canonical.

Do I need to keep the canonical link element up-to-date at all times in the DOM as the url changes, or is it sufficient to set it once on page load and then leave it alone?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Nickens628

1 Comments

Sorted by latest first Latest Oldest Best

 

@Karen161

If the dynamic URLs are indexed by the search engine, yes, you should keep the canonical link element up-to-date. This could be made from the template which is rendered, and would always include the same canonical for that content.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme