How to point the netlify cms preview link to deployed branch

When I make changes to a page in the cms and save the changes. It deploys a preview branch via netlify with (Deploy Previews | Netlify Docs).

However when I click on the netlify preview button (in the cms), it just links to a default url like: . And not to the preview branch like:

How do I get the preview button to link to my deploy preview url?

Thanks in advance!

Hi @sveinn,
I just wanted to find out if you were able to resolve this problem.

If you were not able to resolve the problem, you can enable the preview button to link to the deploy preview url by adding site_url property to your config file located in the admin folder and then set the value to your preview branch ( for example - )

config file


Hope this helps

1 Like

Thanks for chiming in, @clarnx :netliconfetti:

1 Like