# Preview URl is pointing to different page

**URL:** <https://forum.builder.io/t/preview-url-is-pointing-to-different-page/16293>\
**Category:** Bugs\
**Created:** [May 20, 2026, 12:14pm UTC](https://forum.builder.io/t/preview-url-is-pointing-to-different-page/16293 "2026-05-20T12:14:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maythee](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@maythee](https://forum.builder.io/u/maythee)\
**Post date:** [May 20, 2026, 12:14pm UTC](https://forum.builder.io/t/preview-url-is-pointing-to-different-page/16293/1 "2026-05-20T12:14:53Z")

</div>

_Hi, We have a problem on this page that the preview URL points to the wrong URL. I tried update the preview URL manually but after refresh the page, the URL went back to the wrong one. Any way to change the preview URL? Also, anyway to check why this page has a wrong preview URL._

**Builder content link**

> **[Builder.io: Collaborative Development Platform](https://builder.io/content/c6bd7fd892db4107b4011430898812ad/)**
>
> Ship faster with less back-and-forth. Builder connects designers, PMs, and engineers to your real codebase and design system.

---

<div class="post-metadata">

**Author:** ![ParthSharma](https://avatars.discourse-cdn.com/v4/letter/p/a9adbd/32.png) [@ParthSharma](https://forum.builder.io/u/ParthSharma)\
**Post date:** [June 12, 2026, 8:29am UTC](https://forum.builder.io/t/preview-url-is-pointing-to-different-page/16293/2 "2026-06-12T08:29:25Z")

</div>

Hi @maythee,

Thanks for sharing the content link — that’s really helpful!

The behavior you’re seeing (preview URL reverting after refresh) is most likely caused by a **Dynamic Preview URL** configured on the model itself. When a model has Dynamic Preview URL logic set, it automatically computes and overrides the per-entry preview URL on every load — which is why your manual edits don’t stick.

Here’s how to check and fix it:

**Step 1: Check for Dynamic Preview URL logic on the model**

1. Go to **Models** in your Builder space
2. Open the model that this content entry belongs to
3. Look at the **Preview URL** field — click the `< >` (code) icon next to it
4. If there’s custom code in there, that’s what’s overriding your URL

**Step 2: Update the logic to return the correct URL**  
If the code is returning the wrong path, you’ll need to update it there rather than on the individual content entry. For example, if your page URL is based on a slug field:

```javascript
if (contentModel.isLive) {
  return `https://your-site.com/${content.data.slug}`
}
return `https://your-site.com/ __builder_editing__ `

```

**Step 3: If there’s no Dynamic Preview URL logic**  
If the `< >` icon shows no custom code, the issue may be that the content entry’s URL path is being set incorrectly at the targeting level. In that case, could you share:

- The model name this content entry belongs to
- Your Builder **Space ID** (found in Account Settings)
- A screenshot of what the wrong URL is vs. what it should be

For more context, our docs on [Dynamic Preview URLs](https://www.builder.io/c/docs/dynamic-preview-urls) explain how the model-level logic works and how to customize it.

Looking forward to getting this sorted for you!
