LPS-47632 fix redirect urls to different pages
LPS-49320 This causes SQL exceptions in some dbms (like PostgreSQL)