Sylius/Sylius — pull request #2100 by liverbool (2014-11-03 15:09:16+00:00)
Title: [ResourceBundle] Improve redirection.

| Q	| A |
|--------------------------|------ |
| Bug Fix?	| n |
| New Feature?	| y |
| BC Breaks?	| n |
| Deprecations?	| n |
| Tests Pass?	| y |
| Fixed Tickets	| |
| License	| MIT |
| Doc PR | |

New PR for #1971

This PR contains two features

**Improve referer redirect with added `referer ` as key of redirect config**

```yaml
_sylius:
redirect:
# To set referer redirect by using query parameter e.g. ?_referer=url_path
referer: $_referer
# or specify with static
referer: http://someurl
# or use default header referer
referer: true

# or using older style
_sylius:
redirect: referer
````

**Add `hash` key for redirect with hash**

```yaml
_sylius:
redirect:
route: ...
parameters: ...
hash: some_hash # This will redirect with url_path#some_hash
# or
_sylius:
redirect:
referer: true
hash: some_hash # This will redirect with referer_url#some_hash
````