Forum Discussion
youssef1
Cumulonimbus
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
Nikoolayy1
Jun 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.