Skip to content

Users get sent to /_fos_user_context_hash upon login (ezpublish application) #287

@gggeek

Description

@gggeek

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions