Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Security Bundle][Route] Hash _fragment is lost during generation of login_path #23675

Copy link
Copy link
Closed
@KateSyrotchuk

Description

@KateSyrotchuk
Issue body actions
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.3.3

How to reproduce: Being non-logged in I go to secure area, for example, /admin, it has to redirect to login_path which in my case contains #(for example /index#login), but url generated is /index. That’s because an additional attribute “_firewall_context” has been introduced in symfony 3.3.3 (#22943).
During generation of login_path url (in Symfony\Component\Routing\Generator\UrlGenerator.php) my _fragment added after parameters (http://index?_firewall_context=security.firewall.map.context.main#login) and lost after _firewall_context param is removed

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.