# How to detect Options page is being opened through "about:addons" page

**URL:** <https://discourse.mozilla.org/t/how-to-detect-options-page-is-being-opened-through-about-addons-page/36400>\
**Category:** Development\
**Created:** [March 1, 2019, 9:52am UTC](https://discourse.mozilla.org/t/how-to-detect-options-page-is-being-opened-through-about-addons-page/36400 "2019-03-01T09:52:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![juraj.masiar](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/juraj.masiar/32/30587_2.png) [@juraj.masiar](https://discourse.mozilla.org/u/juraj.masiar)\
**Post date:** [March 1, 2019, 9:52am UTC](https://discourse.mozilla.org/t/how-to-detect-options-page-is-being-opened-through-about-addons-page/36400/1 "2019-03-01T09:52:04Z")

</div>

Hello,

**Is there some nice way to detect that Options page is being viewed through about:addons page?**

Due to the recent changes in layout of about:addons page (it’s super narrow now, even on big screens), I would like to prevent users from using this view and just show one big button “Open options page” that would open it in new tab.

I would like to achieve this without “tabs” permission.

---

<div class="post-metadata">

**Author:** ![freaktechnik](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/freaktechnik/32/37766_2.png) [@freaktechnik](https://discourse.mozilla.org/u/freaktechnik)\
**Post date:** [March 1, 2019, 9:59am UTC](https://discourse.mozilla.org/t/how-to-detect-options-page-is-being-opened-through-about-addons-page/36400/2 "2019-03-01T09:59:35Z")

</div>

Shouldn’t the page never load inline if you set `open_in_tab` to `true`? Alternatively you’d have two pages, one that loads inline and has a button and one that is the actual options page (super convoluted…)

---

<div class="post-metadata">

**Author:** ![juraj.masiar](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/juraj.masiar/32/30587_2.png) [@juraj.masiar](https://discourse.mozilla.org/u/juraj.masiar)\
**Post date:** [March 1, 2019, 10:09am UTC](https://discourse.mozilla.org/t/how-to-detect-options-page-is-being-opened-through-about-addons-page/36400/3 "2019-03-01T10:09:04Z")

</div>

YES!  
I can’t believe I’ve missed that (I think last time I’ve read that API was when I was developing my first addon 🙂).

I also like the idea with the “fake” options page! But the manifest key works great (also in Chrome).

Thank you!
