FrancisG-Massey / Capstone2016

4 stars 0 forks source link

Redirect to trapline-admin page after login #210

Closed FrancisG-Massey closed 7 years ago

FrancisG-Massey commented 7 years ago

Currently, after a successful login, the user is redirected to the home page. They should instead be redirected to the "trapline-admin" page.

MrMJLee commented 7 years ago

I got told to redirect to Home page. It was initially to Trapline page. So what about other guys's ideas????? !!

sam-hunt commented 7 years ago

I think there should be an admin home page instead of defaulting to either of these (the trapline page or the main site home page). This admin home page should have easy links to all of the top-level entity admin pages:

  1. Region/trapline (I still think these could benefit from being separate if they aren't already)
  2. User
  3. Trap-type
  4. Catch-type
  5. Bait Are there any others I've forgotten missing? I don't have access to the db to check the table schema while at work sorry. This admin-home would then become the top of the breadcrumb too.

Otherwise its a chore to navigate to these pages by digging through the trap/catch pages and looking for the links etc.

sam-hunt commented 7 years ago

I guess I shouldn't call it an admin home page, because any normal user will be able to log in (but not edit most entities), and their visibility of entities will be restricted by their permissions in the permissions model.

FrancisG-Massey commented 7 years ago

Better not complicate things and just redirect to the trapline-admin page for now - given the amount of work MJ has to do, he probably won't even have time to add pages for editing all the things you've mentioned (though if by some chance he does, we can always change the redirects).

MrMJLee commented 7 years ago

Closing this issue.