'urlparams' is not defined

When I reference urlparams from anywhere (console, query, component, etc) in my multi-page apps, it's underlined in yellow and has a tooltip that says "'urlparams' is not defined". The references work even though it says undefined, but I'm wondering if this will change? Thank you!

image

l think we need to update the docs on this, but I believe accessing url params with multipage is different (Build multipage apps | Retool Docs)
Try using the url object instead!

3 Likes

this is definitely a bug though, thanks for bringing it up!

1 Like

when importing a single page app into a multipage app, it would be great if all refrences to urlparams got switched to url.searchparams. doing this by hand until told of a better way

Had this answered in somewhat in office hours. export app to json, edit the app in an editor do a search/replace, reimport the app.

1 Like

Hey @sgodoshian and @dlbhilbig,

Although urlparams is deprecated in multipage, you should be able to access the value now. Thanks for sharing that work around on the thread @dlbhilbig. I'm going to mark that as solved to create more visibility. Happy to bring this feedback to our engineers.

1 Like