login: fix redirection to secure page
login: fix redirection to secure page

* Fixes an issue when endpoint needed view arguments to generate
  `secure_url` for comparison with `request.base_url`.  (closes #2052)

Signed-off-by: Eirini Psallida <d8029defc21e6ed23f32bbbd940d30a709d8ff14@cern.ch>
Reviewed-by: Jiri Kuncar <2bdffcb416fed3002465740d19a053a39918cbe5@cern.ch>

tiborsimko/invenio,inveniosoftware/invenio,tiborsimko/invenio,inveniosoftware/invenio