# Page picker always opens a new browser tab when selecting certain pages (like person/Joe)

**URL:** https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997
**Category:** v1: Troubleshooting (legacy)
**Created:** [March 18, 2025, 7:47am UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997 "2025-03-18T07:47:24Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![paletochen](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@paletochen](https://community.silverbullet.md/u/paletochen)
#### Post date: [March 18, 2025, 7:47am UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/1 "2025-03-18T07:47:24Z")

</div>

System: Debian, Docker, Edge image

Hi,  
I am currently facing an issue in my 2 docker instances which are also configured as PWA, and in 2 different browsers (Chrome and Firefox).

When I have the instance opened, regardless if it is as a tab, or as a PWA, and I try to open `person/Joe` it does open that page in a new browser tab.  
That means that when I am in PWA mode, I miss the page opened (Joe) as I normally have Silverbullet PWA instance opened in a different workspace than the rest of the apps.  
If i open silverbullet as a browser tab, it just creates a new tab.

I can see the same behavior in Chrome and Firefox.

Does anyone see the same?  
And if not, any idea how i could resolve this?

Thanks

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [March 18, 2025, 1:35pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/2 "2025-03-18T13:35:34Z")

</div>

I cannot replicate this behavior. Does this happen when you navigate using the page picker or when clicking on links. And does it happen for all pages, or just pages in folders?

---

<div class="post-metadata">

### Author: ![paletochen](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@paletochen](https://community.silverbullet.md/u/paletochen)
#### Post date: [March 18, 2025, 1:52pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/3 "2025-03-18T13:52:21Z")

</div>

Thanks for checking this 🙂

> [@zef](#):
>
> Does this happen when you navigate using the page picker or when clicking on links.

When using the page picker

> [@zef](#):
>
> And does it happen for all pages, or just pages in folders?

Funny though, only for pages inside `Person` folder, like `Person/Joe`

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [March 18, 2025, 1:56pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/4 "2025-03-18T13:56:03Z")

</div>

What can I say… this doesn’t happen for me. Anything special about the Person folder? Anything odd in the logs?

---

<div class="post-metadata">

### Author: ![paletochen](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@paletochen](https://community.silverbullet.md/u/paletochen)
#### Post date: [March 18, 2025, 1:58pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/5 "2025-03-18T13:58:39Z")

</div>

That’s what I am trying to figure out.  
I have an emoji assigned to the pages, trying to remove them to see if that’s the issue, but it is taking a long time for my instance to update the changes

---

<div class="post-metadata">

### Author: ![paletochen](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@paletochen](https://community.silverbullet.md/u/paletochen)
#### Post date: [March 18, 2025, 2:13pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/6 "2025-03-18T14:13:39Z")

</div>

The only difference between open another page and one that opens in a new tab is the following message in the console, when it opens in a new tab:

```auto
Couldn't find plug for specified extension client.ts:1214:16

```

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [March 18, 2025, 2:14pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/7 "2025-03-18T14:14:43Z")

</div>

Ok that can actually explain it. Your literal example is Person/Joe? Not something with a `.` in the name?

And you are really on a recent edge build right, because there was a regression similar to this a week or so ago I remember.

---

<div class="post-metadata">

### Author: ![paletochen](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@paletochen](https://community.silverbullet.md/u/paletochen)
#### Post date: [March 18, 2025, 2:20pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/8 "2025-03-18T14:20:14Z")

</div>

I’ll force a new image right now and let you know.  
`person/Joe` was just an example. My pages are most of them real names, including surname. But i tested with pages without spaces and it was the same behavior.  
Example, a real one that I have is this one, which opens in a new tab:

 ![image](https://community.silverbullet.md/uploads/default/original/2X/d/d0d9464480d6d88d106ac9ca5a8d52c2ccc9dd99.png)

---

<div class="post-metadata">

### Author: ![paletochen](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@paletochen](https://community.silverbullet.md/u/paletochen)
#### Post date: [March 18, 2025, 2:23pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/9 "2025-03-18T14:23:53Z")

</div>

That’s the image version:

zefhemel/silverbullet:edge@sha256:286bfd389581dda6a19bab8d7153989645c20a1b2239d8e0e6c1c8ef75c54b7f

---

<div class="post-metadata">

### Author: ![paletochen](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@paletochen](https://community.silverbullet.md/u/paletochen)
#### Post date: [March 18, 2025, 3:07pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/10 "2025-03-18T15:07:31Z")

</div>

I found the issue, it is related to the objectDecorators (slightly):

```auto
objectDecorators:
  - where: 'type = "person"'
    attributes:
      pageDecoration.prefix: '"🧑 "'

```

The problem seems to be, not really the Decorator, but what i used for it `type:`

If i change `type:` for `tags:` in the person’s page, it seems to work.  
So i’ll try to mass change all my `types:` to `tags:` and change the Decorator.

Is it ok to have two `tags:` rows in the frontmatter?  
Until i fix that, i may have two rows as i am mass replacing from:

```auto
type: person
tags: family

```

to

```auto
tags: person
tags: family

```

(for example)

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [March 18, 2025, 3:19pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/11 "2025-03-18T15:19:59Z")

</div>

Oh wow, that’s very obscure, but indeed this is likely related to the recent introduction of custom editors,.

@MrMugame — maybe something we can avoid? It’s not great to implicitly introduce new restrictions of attribute names like `type`. It’s not immediately obvious where this breaks, but I remember an additional `type` property being passed around, which is likely what’s clashing here.

@paletochen I’d expect that if you have twice the same key you either get a parse error, or the second overrides the other. You’d have to change it to list syntax, or use another term like `kind` for instance.

---

<div class="post-metadata">

### Author: ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)
#### Post date: [March 18, 2025, 3:22pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/12 "2025-03-18T15:22:11Z")

</div>

Yeah, I‘m unsure of the top of my head where this happens, but I‘m definitely gonna look into it today or tomorrow. Should definitely not happen tho

---

<div class="post-metadata">

### Author: ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)
#### Post date: [March 18, 2025, 3:40pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/13 "2025-03-18T15:40:44Z")

</div>

I think I already found it.

> <https://github.com/silverbulletmd/silverbullet/blob/main/web/components/page_navigator.tsx#L114>

`pageMeta` overwrites the type causing the navigation to not know it‘s type. Is there a good reason to spread the metadata here? A quick solution would just be to reorder these so we overwrite the user provided metadata, thats not really nice tho

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [March 18, 2025, 3:42pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/14 "2025-03-18T15:42:34Z")

</div>

> [@MrMugame](#):
>
> Is there a good reason to spread the metadata here?

Maybe not good, but I think some of the code elsewhere is changing the rendering based on some specific attributes like aliases, tags etc. This has all become a bit messy over time, though. Maybe good to just pass on `pageMeta` without the spreading, and pull data from there in other places.

---

<div class="post-metadata">

### Author: ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)
#### Post date: [March 18, 2025, 3:44pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/15 "2025-03-18T15:44:31Z")

</div>

We could just do `meta: pageMeta` and change the code everywhere else there tag, etc is used

---

<div class="post-metadata">

### Author: ![zef](https://community.silverbullet.md/user_avatar/community.silverbullet.md/zef/32/7_2.png) [@zef](https://community.silverbullet.md/u/zef)
#### Post date: [March 18, 2025, 3:47pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/16 "2025-03-18T15:47:31Z")

</div>

Yes, that sounds right.

---

<div class="post-metadata">

### Author: ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)
#### Post date: [March 18, 2025, 3:52pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/17 "2025-03-18T15:52:45Z")

</div>

lol yeah thats what you already said woops

---

<div class="post-metadata">

### Author: ![paletochen](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/p/cdc98d/32.png) [@paletochen](https://community.silverbullet.md/u/paletochen)
#### Post date: [March 18, 2025, 4:08pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/18 "2025-03-18T16:08:05Z")

</div>

Thanks folks for looking into this.  
And sorry for giving you more work due to finding this weird “bug” 😉

I have solved it on my side in the meantime by changing `type: ` to `kind: `

Eventually I may change it to something else, even if back to `type: ` if it gets fixed

---

<div class="post-metadata">

### Author: ![MrMugame](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mrmugame/32/358_2.png) [@MrMugame](https://community.silverbullet.md/u/MrMugame)
#### Post date: [March 18, 2025, 8:43pm UTC](https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997/19 "2025-03-18T20:43:47Z")

</div>

No problem, I created the bug …

Anyway, this should fix it once merged

> <https://github.com/silverbulletmd/silverbullet/pull/1301>
>
> This fixes a bug where page attributes could overwrite internal variables leadin…g to unwanted behaviour
> 
> https://community.silverbullet.md/t/page-picker-always-opens-a-new-browser-tab-when-selecting-certain-pages-like-person-joe/1997
> 
> (Someday this should be properly typed)
