# Dynamically loaded pages and shared context

**URL:** <https://community.weweb.io/t/dynamically-loaded-pages-and-shared-context/759>\
**Category:** How do I?\
**Tags:** xano\
**Created:** [July 6, 2022, 8:05pm UTC](https://community.weweb.io/t/dynamically-loaded-pages-and-shared-context/759 "2022-07-06T20:05:05Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![TrendiMike](https://avatars.discourse-cdn.com/v4/letter/t/ba8739/32.png) [@TrendiMike](https://community.weweb.io/u/TrendiMike)\
**Post date:** [July 6, 2022, 10:52pm UTC](https://community.weweb.io/t/dynamically-loaded-pages-and-shared-context/759/5 "2022-07-06T22:52:45Z")

</div>

If anyone comes across the post and is guessing how to extract the values from the URL root, I recommend using the built-in query variables and the system will extract the information from the URL automatically. However, there is a more extended discussion here:

> [@Get Parameter from URL](https://community.weweb.io/t/get-parameter-from-url/329/2):
>
> const urlParams = new URLSearchParams(location.search); urlParams.get(‘token’); You can just dump the whole url into the URLSearchParams constructor. boom.

---

_[View the full topic](https://community.weweb.io/t/dynamically-loaded-pages-and-shared-context/759)._
