# Parameter changes and reverts to default again

**URL:** <https://community.weweb.io/t/parameter-changes-and-reverts-to-default-again/4547>\
**Category:** How do I?\
**Created:** [September 23, 2023, 1:47pm UTC](https://community.weweb.io/t/parameter-changes-and-reverts-to-default-again/4547 "2023-09-23T13:47:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sensei](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@sensei](https://community.weweb.io/u/sensei)\
**Post date:** [September 23, 2023, 1:47pm UTC](https://community.weweb.io/t/parameter-changes-and-reverts-to-default-again/4547/1 "2023-09-23T13:47:34Z")

</div>

[![](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/e/ef351b9a8f9a7c3d67cf4fa3d7ce6e1605984e64.webp "New Recording - 23/09/2023, 15:43:58") ](https://vimeo.com/867471418/11cb626de4)

1. I have a “view” page parameter.
2. I have a "_change page" workflow when clicking a tab. this workflow changes the “view” parameter_  
_3. I click the tab._  
_4. the view “parameter” changes for a second to the correct value then reverts to the default value “Home”_  
_I am not aware of any other workflow in the app that could affect the parameter value._

_Anyone_ has any idea what is happening?

Thanks.

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [September 23, 2023, 7:26pm UTC](https://community.weweb.io/t/parameter-changes-and-reverts-to-default-again/4547/2 "2023-09-23T19:26:23Z")

</div>

What page are you linking to? I can only see the parameter.

---

<div class="post-metadata">

**Author:** ![sensei](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@sensei](https://community.weweb.io/u/sensei)\
**Post date:** [September 23, 2023, 7:29pm UTC](https://community.weweb.io/t/parameter-changes-and-reverts-to-default-again/4547/3 "2023-09-23T19:29:53Z")

</div>

@broberto I link to “Current page” and specifically to the “Home” page but with same results.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/f/fd2f96af59df48445463647e8a246518867189c7.png)

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [September 23, 2023, 7:39pm UTC](https://community.weweb.io/t/parameter-changes-and-reverts-to-default-again/4547/4 "2023-09-23T19:39:13Z")

</div>

I think you’re trying to create an SPA. Are you trying to create one? If yes, then this might not be the way I think.

---

<div class="post-metadata">

**Author:** ![sensei](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@sensei](https://community.weweb.io/u/sensei)\
**Post date:** [September 23, 2023, 7:40pm UTC](https://community.weweb.io/t/parameter-changes-and-reverts-to-default-again/4547/5 "2023-09-23T19:40:37Z")

</div>

@Broberto Yes, I am. Should I be using queries instead of page parameters?

---

<div class="post-metadata">

**Author:** ![Broberto](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/broberto/32/5918_2.png) [@Broberto](https://community.weweb.io/u/Broberto)\
**Post date:** [September 23, 2023, 7:46pm UTC](https://community.weweb.io/t/parameter-changes-and-reverts-to-default-again/4547/6 "2023-09-23T19:46:28Z")

</div>

For SPAs you should just use multipage sections and work normally with pages. @Joyce might be able to tell you more, I’ve not dealt with many SPA’s yet. But yeah, this way is not the one you want I think. Try looking at the docs and multipage sections also.

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [September 25, 2023, 8:47am UTC](https://community.weweb.io/t/parameter-changes-and-reverts-to-default-again/4547/7 "2023-09-25T08:47:32Z")

</div>

Weweb is an SPA, so when you create an other page and navigate between them, you are doing it inside SPA.  
For each of your variables, you can decide if their value or reset or keep betwwen pages (default behavior)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [September 28, 2023, 3:11pm UTC](https://community.weweb.io/t/parameter-changes-and-reverts-to-default-again/4547/8 "2023-09-28T15:11:25Z")

</div>

> [@Broberto](#):
>
> For SPAs you should just use multipage sections and work normally with pages.

Yep, here’s the [tutorial on working with multi-page sections in WeWeb](https://academy.weweb.io/build-a-proof-of-concept/multi-page-sections-spa/) if you’re interested @sensei

Does that help?
