Forum Discussion
Original URL redirect after APM authentification
Hi,
You have a strange behaviour.
By design, APM redirect the user to the session.server.landinguri after APM policy completed.
The session.server.landinguri is filled with the very first request the user do to your application. So, this var should be good for your need.
Can you test this irule by the way:
when ACCESS_POLICY_COMPLETED {
set mylandinguri [ACCESS::session data get "session.server.landinguri"]
ACCESS::respond 302 "Location" "$mylandinguri" "Connection" "Close"
}
It will respond to your need.
regards
- Nikoolayy1Jun 30, 2023MVP
Have you tested this irule as on 16.1.3.5 this breaks the web page and there are TCL errors? I think that ACCESS:respond works well to return a custom page if the auth fails or the access policy is successfull but not for redirection.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com