I just updated my site to use pretty URL structures.
Old URL: https://digimoncard.io/deck/?deckid=1241
New URL: https://digimoncard.io/deck/green-otk-1241
I've set up my SEO like so:
<meta property="og:url" content="https://digimoncard.io/deck/green-otk-1241" />
<link rel="canonical" href="https://digimoncard.io/deck/?deckid=1241" />
Would this be considered correct practice? Currently, Google has the old-style URLs indexed and I want to avoid duplicate content SEO issues.
However, I'm not entirely sure if the query string URL should be in canonical or if it should be the other way around?