# Refresh UI post change in URL parameters

**URL:** <https://discuss.huggingface.co/t/refresh-ui-post-change-in-url-parameters/52654>\
**Category:** 🔒 Gradio\
**Created:** [August 29, 2023, 11:58am UTC](https://discuss.huggingface.co/t/refresh-ui-post-change-in-url-parameters/52654 "2023-08-29T11:58:30Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 14, 2023, 7:43pm UTC](https://discuss.huggingface.co/t/refresh-ui-post-change-in-url-parameters/52654/2 "2023-10-14T19:43:26Z")

</div>

Hi, this example doesn’t work. Not sure why it worked before…

The `extracted_url_params ` is an empty `{}`

This is the output I get:

`init values {'targets': [(None, 'load')], 'inputs': [1], 'outputs': [1], 'backend_fn': True, 'js': '\n function() {\n const params = new URLSearchParams(window.location.search);\n const url_params = Object.fromEntries(params);\n console.log(url_params); // Debugging line\n\n return [url_params];\n }\n ', 'queue': None, 'api_name': None, 'scroll_to_output': False, 'show_progress': 'full', 'every': None, 'batch': False, 'max_batch_size': 4, 'cancels': [], 'types': {'continuous': False, 'generator': False}, 'collects_event_data': False, 'trigger_after': None, 'trigger_only_on_success': False} OUTPUTS: [1] 1 extracted_url_params {}`

I have inspected the [codebase](https://github.com/gradio-app/gradio/blob/f0e76a082ebe0930952231c22c56b019882dbef9/gradio/blocks.py#L1748C13-L1748C16) and it appears that the output is the `Dependency`. I am using 3.45.2 version of gradio & 0.5.3 gradio client. What version of Gradio are you using?

Any tips? Suggestions?

Thank you!

---

_[View the full topic](https://discuss.huggingface.co/t/refresh-ui-post-change-in-url-parameters/52654)._
