Redirection after successful login based on user level ID (v2024)

You need to explain “not work” or “problem exists”.

  1. What did you see? Any error message?
  2. Did you enable Debug? Any error message in the log file?
  3. Did you check Network panel in your browser? What is the response, any redirection URL? As always, you should check HTTP response.
  4. You may also add log to debug your code, e.g.
Log("Login - Page_Redirecting", [$userLevel, CurrentUserLevel(), IsLoggedIn(), CurrentUserInfo("SupportStaff")]);

See the result in log file, check if any of the cases in your code is met.