Open Mike-Heneghan opened 4 years ago
Although it was relatively simple to add the code to redirect encountered a bug which caused confusion as well as a strange issue with claims.
The bug was that when I was testing that the redirect to 'My organisations' doesn't interrupt when a user is logging in to complete an action. For example, being logged out and selecting "Add to saved services". When this was seen not to work it was initially thought this was due to changes but also noted it occured on staging.
The second issue was with the redirect from the homepage to 'My organisations' realised that for a claimed organisation to appear a claim has to have been approved. I had used the fixtures and assumed adding a claimed_by
would suffice which was not correct.
Also when adding a claim and then approving through the shell the changes didn't propagate to the organisation. Had to revoke and approve through the admin dashboard.
Feedback from users is that they would prefer to be directed straight to the admin page when they login to the ALISS site.
Currently, users are only redirected to the "My reviews" page if it has been identified that services they can edit have not been updated recently.
This change would only redirect users who have admin access to the admin dashboard page on login i.e '/account/dashboard/`