Skip to content

Conversation

yareckon
Copy link

@yareckon yareckon commented Nov 2, 2017

Added 300 code to array of valid redirections in isRedirect().
This remains consistent with deprecated isRedirection() which checked >= 300.

Not supporting 300 has effects on downstream projects
drupal/redirect : https://www.drupal.org/node/2920454

If there is a good reason for removing support for 300, perhaps it would be a good time to document that.

Thanks!

Added 300 code to array of valid redirections in isRedirect().  
This remains consistent with deprecated isRedirection() which checked >= 300.
Added 300 code as valid in isRedirect()
@yareckon
Copy link
Author

yareckon commented Nov 2, 2017

One reason to not support 300 would be that it is a bit of a different beast -- it's an "Agent Driven" redirect where, instead of a single destination like other 30x codes, in 300 you are supposed to return a menu of possible options (like 3 sizes of videos) and let the User Agent choose which destination to go to.

@nicolas-grekas
Copy link
Member

Thanks for this PR. Yet I invite you to submit it on the main symfony/symfony repository: this is where merges happen. Note that you should add test cases while doing so. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants