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: https://blablala.netlify.app . And not to the preview branch like: https://deploy-preview-26--blablala.netlify.app.

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 - https://deploy-preview-26--blablala.netlify.app )

config file

site_url: https://deploy-preview-26--blablala.netlify.app/

Hope this helps
Thanks

1 Like

Thanks for chiming in, @clarnx :netliconfetti:

1 Like