If session.lastRoute
is populated in the store it will be used. If it is not the default-route
attribute will be used. And if no default-route
is provided then the user will return to the root of the current application as specified in application.applications
in the store.
c-backLink
and c-backButton
classes are added to the root element of the components to allow styling outside of the component itself.
Note It'd be best to avoid using this component with forms that use unsavedChangesPrompt since a route change is triggered and that won't cause functions in the forms component to get called.