# "View live page" opens wrong URL bug

**URL:** <https://forum.builder.io/t/view-live-page-opens-wrong-url-bug/4495>\
**Category:** Technical Questions\
**Tags:** visual-editor, preview-url, nextjs\
**Created:** [November 20, 2023, 11:54am UTC](https://forum.builder.io/t/view-live-page-opens-wrong-url-bug/4495 "2023-11-20T11:54:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neri](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@neri](https://forum.builder.io/u/neri)\
**Post date:** [November 20, 2023, 11:54am UTC](https://forum.builder.io/t/view-live-page-opens-wrong-url-bug/4495/1 "2023-11-20T11:54:37Z")

</div>

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](https://www.builder.io/c/docs/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?

---

<div class="post-metadata">

**Author:** ![manish-sharma](https://avatars.discourse-cdn.com/v4/letter/m/8797f3/32.png) [@manish-sharma](https://forum.builder.io/u/manish-sharma)\
**Post date:** [November 20, 2023, 8:52pm UTC](https://forum.builder.io/t/view-live-page-opens-wrong-url-bug/4495/2 "2023-11-20T20:52:55Z")

</div>

Hello @neri,

To address this issue, try enabling the option “Reload preview on URL path change.” You can find this option in Settings → Advanced Settings → Advanced. This adjustment should help resolve the problem for you.

 ![Screenshot 2023-11-21 at 2.20.42 AM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/6/6a330dbb9a5f7cb23e7bdf3a0032ecfdc2d5b9f2.png)  
 ![Screenshot 2023-11-21 at 2.18.56 AM](https://us1.discourse-cdn.com/flex020/uploads/builder/original/2X/1/1b4e4cff90d37e04fe675580c805dd5e6ff7280d.jpeg)
