fix double click running from the portal

the main issue had to do with the session being cleared during logout
this also removes :portal from the session, and uses built in
omniauth.origin variable

[#54790624]