[Feature]: Add a pageName object that can be referenced in code #36103
Labels
Enhancement
New feature or request
Framework Functions
Cases related to internal functions like showAlert(), navigateTo() etc...
Javascript Product
Issues related to users writing javascript in appsmith
Query & JS Pod
Issues related to the query & JS Pod
Is there an existing issue for this?
Summary
I would like for something like
appsmith.url.pageName
to exist. I want it to have the exact name with the capitalisation so it can be used in navigate to functions. This would be very usefull for creating back buttons withing the app. I am imagining the this page name could be stored in the url parameter. I know I can hard code this but changing the page name would break things and it would also be useful for other things like showing the title of the page within a text widget.Why should this be worked on?
Enables to set the page name of the previous page in the url which can then be used on the new page to navigate back to the previous one.
The text was updated successfully, but these errors were encountered: