Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[FrameworkBundle] feature: redirect query params too in RedirectController#9314

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
javiereguiluz merged 3 commits intosymfony:masterfromSimperfit:patch-7
Apr 26, 2018

Conversation

@Simperfit
Copy link
Contributor

Adding documentation for the redirectAction improvement.

This needs the feature to be merged first

Because you are redirecting to a route instead of a path, the required
option is called ``route`` in the ``redirect()`` action, instead of ``path``
in the ``urlRedirect()`` action.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

should be reverted

@xabbuhxabbuh added this to the4.1 milestoneApr 20, 2018
@xabbuhxabbuh removed the Waiting Code MergeDocs for features pending to be merged labelApr 20, 2018
'_controller' => 'Symfony\Bundle\FrameworkBundle\Controller\RedirectController::redirectAction',
'route' => 'sonata_admin_dashboard',
'permanent' => true,
'keepQueryParams' => true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

The trailing comma in the last element of the arrays is missing, look#8325

Adding documentation for the redirectAction improvement
@Simperfit
Copy link
ContributorAuthor

@xabbuh@DylanDelobel done

Assume you are migrating your website from WordPress to Symfony, you want to
redirect ``/wp-admin`` to the route ``sonata_admin_dashboard``. You don't know
the path, only the route name. This can be achieved using the
the path, only the route name, if you pass query parameters to this route and active the ``keepQueryParams``, it will be redirected too. This can be achieved using the
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

We usually split lines after the first word that crosses the 72nd character. But we can make that tweak while merging. :)

@javiereguiluz
Copy link
Member

Thanks for documenting this new 4.1 feature ... and for implementing the feature too!

@javiereguiluzjaviereguiluz merged commitba5c343 intosymfony:masterApr 26, 2018
javiereguiluz added a commit that referenced this pull requestApr 26, 2018
…edirectController (Simperfit, javiereguiluz)This PR was merged into the master branch.Discussion----------[FrameworkBundle] feature: redirect query params too in RedirectControllerAdding documentation for the redirectAction improvement.This needs the feature to be merged firstCommits-------ba5c343 Restored a removed character6c92c05 Reworded the new option explanation7210586 feature: redirect query params too in RedirectController
javiereguiluz added a commit that referenced this pull requestMay 28, 2018
This PR was merged into the 4.1 branch.Discussion----------Added a missing versionadded directiveWe forgot to add this in#9314.Commits-------f7d96ea Added a missing versionadded directive
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh approved these changes

+1 more reviewer

@DylanDelobelDylanDelobelDylanDelobel left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

4.1

Development

Successfully merging this pull request may close these issues.

5 participants

@Simperfit@javiereguiluz@xabbuh@DylanDelobel@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp