Task #11910 (closed)
Custom redirection on login
| Reported by: | atarkowska | Owned by: | atarkowska |
|---|---|---|---|
| Priority: | major | Milestone: | 5.1.0 |
| Component: | Web | Version: | 4.4.10 |
| Keywords: | n.a. | Cc: | wmoore |
| Resources: | n.a. | Referenced By: | n.a. |
| References: | n.a. | Remaining Time: | 0.0d |
| Sprint: | n.a. |
Description
In few sites it was required to set custom redirection link after login. By default view method decorator redirects always to the original location. Right now is possible to define which views should be redirected after login to the specific location. This is particular useful if you want users to see all data from specific group without going to the drop down menu.
bin/omero config set omero.web.login_redirect '{"redirect": ["webindex"], "viewname": "load_template", "args":["userdata"], "query_string": "experimenter=-1"}'
redirect - list of view names or urls should be redirected after login
viewname - a name of the view used in urls.py
args - arguments associated with a view
query_string - part of URL that contains data to be passed to web applications such as CGI programs
Change History (3)
comment:1 Changed 6 years ago by atarkowska
- Cc wmoore added
- Component changed from General to Web
- Milestone changed from Unscheduled to 5.1.0
- Owner set to atarkowska
- Version changed from 5.0.0-beta2-RC3 to 4.4.10
comment:2 Changed 6 years ago by atarkowska
- Resolution set to fixed
- Status changed from new to closed
comment:3 Changed 6 years ago by Aleksandra Tarkowska <A.Tarkowska@…>
- Remaining Time set to 0
(In [63d06f3327461cff54ba2df616ee4e80ba4e821a/ome.git] on branch develop) catching exceptions while preparing url to redirect to, close #11910
Implemented in https://github.com/openmicroscopy/openmicroscopy/pull/1982