# One Tab Only Addon

**URL:** https://community.zammad.org/t/one-tab-only-addon/10891
**Category:** Development
**Tags:** community-addon
**Created:** [February 7, 2023, 7:22pm UTC](https://community.zammad.org/t/one-tab-only-addon/10891 "2023-02-07T19:22:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Stubenhocker](https://community.zammad.org/user_avatar/community.zammad.org/stubenhocker/32/3944_2.png) [@Stubenhocker](https://community.zammad.org/u/Stubenhocker)
#### Post date: [February 7, 2023, 7:22pm UTC](https://community.zammad.org/t/one-tab-only-addon/10891/1 "2023-02-07T19:22:32Z")

</div>

Hello! 😄

Coming from [Working with Multiple Browser Tabs - #31 by colesnicov](https://community.zammad.org/t/working-with-multiple-browser-tabs/8807/31), to reduce the offtopic conversation from going there, I’m going to create a new post for the “one tab only” addon here again:

This addon is a change I’ve added to our instance of Zammad. It is a javascript snippet which ensures only one tab is of Zammad is ever open at a time. It solves directly opening links from other chat platforms.

It does so by sending out a window message with the current url to any other potential open Zammad tab and if any responds, it closes itself, while the already opened Zammad tab opens the received url. (Along with sending a notification if the window is not visible, so the window can be focused by clicking on it).

It is not the best solution for sure, as it currently takes a bit for this whole process to happen while it probably still fetches lots of unnecessary data from Zammad simultaneously and it can’t automatically have the tab take focus, so I am thinking about writing a browser extension to archive this instead at some later point in the future or improving the current approach some more.

> **[GitHub - Stubenhocker1399/zammad-addon-one-tab-only](https://github.com/Stubenhocker1399/zammad-addon-one-tab-only/)**
>
> Contribute to Stubenhocker1399/zammad-addon-one-tab-only development by creating an account on GitHub.

EDIT:  
I have discovered today that yeoldegrove created a browser extension that tackles the same issue.

I have not tested this extension myself myself, but it could be a nice alternative and possibly more robust solution than my addon script.

> **[GitHub - yeoldegrove/zammad-single-tab-extension: Browser Addon that if clicking a Zammad ticket...](https://github.com/yeoldegrove/zammad-single-tab-extension)**
>
> Browser Addon that if clicking a Zammad ticket link, will be opened in an existing tab and the new tab will be closed.

> **[Zammad Links in single Tab - Chrome Web Store](https://chromewebstore.google.com/detail/zammad-links-in-single-ta/alghhpkoaifegppjgahbjhkhpgeffpai)**
>
> If clicking a Zammad ticket link, it will be opened in an existing tab and the new tab will be closed.

> **[Zammad Links in single Tab – Get this Extension for 🦊 Firefox (en-US)](https://addons.mozilla.org/en-US/firefox/addon/zammad-links-in-single-tab/)**
>
> Download Zammad Links in single Tab for Firefox. If clicking a Zammad ticket link, it will be opened in an existing tab and the new tab will be closed.

---

<div class="post-metadata">

### Author: ![kientdt](https://community.zammad.org/user_avatar/community.zammad.org/kientdt/32/7002_2.png) [@kientdt](https://community.zammad.org/u/kientdt)
#### Post date: [April 3, 2023, 2:18am UTC](https://community.zammad.org/t/one-tab-only-addon/10891/2 "2023-04-03T02:18:47Z")

</div>

Hello, is this addon still usable? From what I read, it seems like it may no longer be functional?  
Tks.

---

<div class="post-metadata">

### Author: ![MrGeneration](https://community.zammad.org/user_avatar/community.zammad.org/mrgeneration/32/9260_2.png) [@MrGeneration](https://community.zammad.org/u/MrGeneration)
#### Post date: [April 3, 2023, 9:08am UTC](https://community.zammad.org/t/one-tab-only-addon/10891/3 "2023-04-03T09:08:21Z")

</div>

No clue where you have that info from - but a look into the issue section doesn’t confirm that.

> **[Issues · Stubenhocker1399/zammad-addon-one-tab-only](https://github.com/Stubenhocker1399/zammad-addon-one-tab-only/issues)**
>
> Contribute to Stubenhocker1399/zammad-addon-one-tab-only development by creating an account on GitHub.

---

<div class="post-metadata">

### Author: ![system](https://community.zammad.org/uploads/default/original/1X/5c5afaea2d23f811dbec33cd4edb02fa29d3262f.png) [@system](https://community.zammad.org/u/system)
#### Post date: [February 2, 2024, 7:22pm UTC](https://community.zammad.org/t/one-tab-only-addon/10891/4 "2024-02-02T19:22:45Z")

</div>

This topic was automatically closed after 360 days. New replies are no longer allowed.
