Adding canonical link to base.html

I’m trying to improve the SEO score on my ERPNext website.

I need to add a reference in the section. I’d like to have the URL in the href to be the URL for the page.

What python variables are available to the base.html file? I’m assuming it’s something a variable for the site URL plus the route?

Any help would be appreciated!

Canonical link is added by default added on every page