Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dillchuk/zfcuserredirecturi
https://github.com/dillchuk/zfcuserredirecturi
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dillchuk/zfcuserredirecturi
- Owner: dillchuk
- License: mit
- Created: 2017-10-06T22:38:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-01T21:43:02.000Z (about 7 years ago)
- Last Synced: 2024-04-17T11:04:32.005Z (9 months ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZfcUserRedirectUri
[![Build Status](https://travis-ci.org/dillchuk/ZfcUserRedirectUri.svg?branch=master)](https://travis-ci.org/dillchuk/ZfcUserRedirectUri)
Install with `composer require illchuk/zfc-user-redirect-uri`.
Then reference in `modules.config.php`:
~~~
return [
..., 'ZfcUser', 'ZfcUserRedirectUri', ...
];
~~~If you're using ZfcUser's `/user/login?redirect=ROUTE` feature, you may now redirect to any routable URI instead: `ROUTE` can become for example `/ROUTABLE/URI/3?message=OK`.
This is especially useful when using ZfcRbac and user is hit with the login screen; they log in then carry on right where they left off.
ZfcRbac config as follows:
~~~
'redirect_strategy' => [
'redirect_when_connected' => true,
'append_previous_uri' => true,
'previous_uri_query_key' => 'redirect'
],
~~~*N.B. URI's that cannot be routed by your app are silently discarded.*