How do I change the previewed URL to include my custom URL rather than the Netlify URL?

Netlify: interpied.netlify.app
My Domain (same site): eliasramsberg.se

Having some trouble with the domain, so if it doesn’t work please ignore it for now. The issue should be straight forward anyways.

Repro:

  • Go to the website.
  • Hover any of the buttons in the header.
  • See the URL preview (bottom left for me, might differ depending on browser.
  • If you can’t see the preview, right clicking the button and “copy link address” will give the same result.

Please note that the previewed URL always includes the “interpied.netlify.app” URL, even if you are redirecting from “eliasramsberg.se” to “eliasramsberg.se/games”.

I’m very new to all this, so any information is very helpful. Thanks.

eliasramsberg.se contains the site deployed to interpied.netlify.app inside an <iframe>. There is no way in such a situation to change the URL displayed or accessed.

If you would prefer to use eliasramsberg.se as the domain people access, and people see (in both the address bar, and elsewhere) the best option is to configure eliasramsberg.se as a custom domain for your project.

Check out