Skip to content

Explaining default logout path #13427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

ThomasLandauer
Copy link
Contributor

The existing code sample path: app_logout is wrong, since you don't have to pass the route's name, but rather its path (i.e. /logout)!

Please double-check the XML and PHP config - I merely guessed those.

Thanks to #13424 (review)

The existing code sample `path: app_logout` is wrong, since you don't have to pass the route's *name*, but rather its `path` (i.e. `/logout`)!

Please double-check the XML and PHP config - I merely guessed those.

Thanks to symfony#13424 (review)
@94noni
Copy link
Contributor

94noni commented Mar 28, 2020

I do pass the route name on my project (4.4, 5.0) and it works, maybe both are ok?

@ThomasLandauer
Copy link
Contributor Author

Yeah, you're probably right - noticed that yesterday too... ;-) So what should we do now?

What's the recommended way? Since the option is called path, it sounds more like, well, path. If the route's name is the recommended value, it should be renamed to route or route_name.

@wouterj
Copy link
Member

wouterj commented Oct 31, 2020

Hi! The recommended way is to configure a route name, as shown throughout the documentation. So I think that means there is nothing to fix here, so I'm going to close this PR. Thanks for understanding.

Btw see #10423 (comment) , which was the PR changing some of the last path usages to routes in the docs in the 4.1+ versions.

@wouterj wouterj closed this Oct 31, 2020
@ThomasLandauer ThomasLandauer deleted the patch-9 branch October 31, 2020 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants