Hey,
I’m using Nextjs, @builder/react v3.1.1 and @builder/sdk v2.1.1.
I have a page that uses dynamic preview urls.
The preview url of this page is set to: https://www.mysite.com/some_path/${content.data.slug1}/${content.data.slug2}
.
So i have a static url that consists of the domain - https://www.mysite.com
, a path - /some_path
and 2 dynamic slugs. These 2 slugs are page fields i can change in the editor to change the preview url.
The targeting of this page is set to: WHERE
→ Url path
→ Starts with
→ /some_path
,
so any url that starts with https://www.mysite.com/some_path
should be targeted.
The issue/bug:
In the builder editing view, when i click on “View live page”, the new tab opens with this URL: https://www.mysite.com/some_path/**
instead of https://www.mysite.com/some_path/{slug1}/{slug2}
.
This happens in all my pages that uses dynamic url parts.
How can i fix this so “View live page” opens up the right URL?