Not sure if it is a bug in FOSHttpCache, eZPublish or custom code.
The observed behaviour (no varnish, http cache on, ezp 5.4.5):
- user accesses the site
- gets redirected to /login
- fills in the form, posts to /login_check
- gets redirected to /_fos_user_context_hash
Since I fixed this by setting:
security:
firewalls:
ezpublish_front:
form_login:
always_use_default_target_path: true
I suspect that what goes on here is that the internal request made by Sf to retrieve the user-hash gets somehow 'remember' by the session as the last url visited by the end user just before logging in.
Any tips on fixing this in a more flexible way? Or is this really a bug?