↩ī¸Redirects

Summary on how redirects work in saaster

You can redirect to a specific page in saaster with URL variables after a specific action. The corresponding function triggers a session. Let's say you want to redirect the user to the dashboard after a certain action, then add the mapping to the URL:

  • ?redirect=dashboard

If you want to include a whole URL string as a redirect, it is best to put the URL in a urlEncodedFormat function:

  • "?redirect=" & urlEncodedFormat("account-settings/company?companyID=100");

As already mentioned, the redirect creates a session. This session should be deleted again after the user has been successfully redirected. Delete the session as follows:

â€ĸ ?del_redirect

Last updated