getRouterData( )


Gets the data sent by a router to a page as part of its response.

When you define a router and its functionality in the router() method, you can include data in the router's response. This data can then be accessed in the code of the routed page by calling the getRouterData() method. If you call this method from a non-router page or a router page that wasn't sent any data, the method returns null.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?