# Provide URL Parameter to Extension

**URL:** <https://discuss.dev.twitch.com/t/provide-url-parameter-to-extension/39869>\
**Category:** Extensions\
**Created:** [August 3, 2022, 1:09pm UTC](https://discuss.dev.twitch.com/t/provide-url-parameter-to-extension/39869 "2022-08-03T13:09:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Winder](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/winder/32/9273_2.png) [@Winder](https://discuss.dev.twitch.com/u/Winder)\
**Post date:** [August 3, 2022, 1:09pm UTC](https://discuss.dev.twitch.com/t/provide-url-parameter-to-extension/39869/1 "2022-08-03T13:09:00Z")

</div>

Hi there!

I’m currently working on a new update for my Twitch extension “Winder’s Poll Panel”. In this update, I’ll want to make it possible to share polls via links. Basically, its working. I can create a link, which opens my extension on the broadcaster’s channel (where the shared poll is) as a popout.

Example link: `https://www.twitch.tv/popout/winder_orekalcus/extensions/37yzvtr8efeolnmzfnn9vit17qx81w/panel?pollId=1066`

My problem is, that I also want my panel to display the shared poll at startup. I tried to append the shared poll’s ID as a query parameter to the URL. But unfortunately (due to cross-origin-policy), my panel can’t access this parameter (because it’s available in the parent’s parent’s location object).

My question is now, whether any way exists (e.g. via the extension helper), that I can provide a parameter to the shared URL and my panel reads it? Or whether a completely different way exists, I could achieve my goal?

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [August 3, 2022, 1:12pm UTC](https://discuss.dev.twitch.com/t/provide-url-parameter-to-extension/39869/2 "2022-08-03T13:12:01Z")

</div>

> [@Winder](#):
>
> My question is now, whether any way exists (e.g. via the extension helper), that I can provide a parameter to the shared URL and my panel reads it? Or whether a completely different way exists, I could achieve my goal?

No there is not.

Your best solution is that people go to your website, login with Twitch there and vote there instead of on the channels/extension page.

Since you cannot pass start up params since thats not a normal operational flow for an extension.
