How to return current website URL in expression?

I’m trying to set a canonical on my pages in Bubble, but I cannot figure out how to get the current base URL for the site. I don’t want to hard code this. I could use App Text but I would expect to be able to get this dynamically depending on Live or Test.

The popup when inserting dynamic text doesn’t have an option for website URL.

Anyone know what I’m missing?

Thank you.
Matt

Hmm…wouldn’t you only need to extract the dynamic parts of the URL and append that to you the page’s URL? How are you adding the canonical?

Hi,

I’m adding canonical in the header on each page:

Is there a better, more Bubble way to add this?

If that’s the case then you should be able to access dynamic properties. Just attach a “Type of Content” to the page.