# Get URL Parameters from Blocks -\> Global Variable

**URL:** <https://discuss.huggingface.co/t/get-url-parameters-from-blocks-global-variable/59188>\
**Category:** Spaces\
**Created:** [October 19, 2023, 9:40pm UTC](https://discuss.huggingface.co/t/get-url-parameters-from-blocks-global-variable/59188 "2023-10-19T21:40:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blackmarkt](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/blackmarkt/32/20357_2.png) [@blackmarkt](https://discuss.huggingface.co/u/blackmarkt)\
**Post date:** [October 19, 2023, 9:40pm UTC](https://discuss.huggingface.co/t/get-url-parameters-from-blocks-global-variable/59188/1 "2023-10-19T21:40:42Z")

</div>

Hi,

_How can I access the `url parameters`locally in the code so I can use them? None of the gradio components seem to have a return output of the url parameters._

_Here is post I commented about this issue: [Refresh UI post change in URL parameters - #2 by blackmarkt](https://discuss.huggingface.co/t/refresh-ui-post-change-in-url-parameters/52654/2)_

_Thank you_

Here is the github thread:

> <https://github.com/gradio-app/gradio/issues/3228>
>
> \- \[X\] I have searched to see if a similar issue already exists.
> 
> 
> \*\*Is your f…eature request related to a problem? Please describe.\*\*  
> A clear and concise description of what the problem is. Ex. I'm always frustrated when \[...\]
> 
> \*\*Describe the solution you'd like\*\*  
> 
> I just want to identify each request by parameters from gr.Request, so I think copying the query parameters to the websocket is a good idea. 
> 
> 
> 
> current:
> \`\`\`
> HTTP: http://127.0.0.1:7680/gradio/?someargs=value
> WS: ws://127.0.0.1:7680/gradio/queue/join
> \`\`\`
> 
> expected:
> \`\`\`
> HTTP: http://127.0.0.1:7680/gradio/?someargs=value
> WS: ws://127.0.0.1:7680/gradio/queue/join?someargs=value
> \`\`\`
> 
> 
> \*\*Additional context\*\*  
> Add any other context or screenshots about the feature request here.
> 
> under \*mount\_gradio\_app\*
