Persistent Referral Link for WebApp while disabling URL Strategy

Actions & Logic

I am building a client application, and one of the features is a referral Code. where new users have to be referred by existing members.

I managed to do this using App States and Page parameters. However, after I created a custom function to set the URL Strategy to Null. (I want the web version of the app to function as a single page web app. it looks neater and when passing page parameters it wont show in the url.

Like is there a way to allow only one url path for: example: website.com/signup?referralcode=xxxxx

and then set the appstate if the referral code is valid and proceed with the rest of the experience

as website.com without url paths showing. because if I leave the url strategy on default settings users can use browser navigation and a lot of unexpected behaviour happens.

I would appreciate any guidance on how to implement this effectively.

What have you tried so far?

I have tried App states and page parameters.

Did you check FlutterFlow's Documentation for this topic?
Yes