# Bug? formula in page link opens a new window and only sends to home page

**URL:** <https://community.weweb.io/t/bug-formula-in-page-link-opens-a-new-window-and-only-sends-to-home-page/13858>\
**Category:** Ask us anything\
**Tags:** binding, bug\
**Created:** [October 10, 2024, 3:57pm UTC](https://community.weweb.io/t/bug-formula-in-page-link-opens-a-new-window-and-only-sends-to-home-page/13858 "2024-10-10T15:57:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![metalsteve81](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@metalsteve81](https://community.weweb.io/u/metalsteve81)\
**Post date:** [October 10, 2024, 3:57pm UTC](https://community.weweb.io/t/bug-formula-in-page-link-opens-a-new-window-and-only-sends-to-home-page/13858/1 "2024-10-10T15:57:16Z")

</div>

I have this formula on a side menu nav button just to be able to direct people to a different page depending on their user role. I could just make a new side menu and conditional render it based on the role but I’d still like to know if this is a bug or if i am doing something wrong.

no matter what page I put in here it always sends to the home page and always opens in a new window even though I have the new window turned off.

 ![issues](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/e1c055765359c452c3743f58b3cf936dbb8d1b82.png)

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/dorilama/32/10403_2.png) [@dorilama](https://community.weweb.io/u/dorilama)\
**Post date:** [October 10, 2024, 5:06pm UTC](https://community.weweb.io/t/bug-formula-in-page-link-opens-a-new-window-and-only-sends-to-home-page/13858/2 "2024-10-10T17:06:43Z")

</div>

try with the `id` property of the page  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/d/d730965d6042c0c2f72594e1c12b6f0df7ecc968.png)
