Show error message after redirecting to dashboard
What does this MR do?
Users are redirected to the dashboard if they open a link to a region page (e.g. forum) of which they are not a member. This adds a popup notification telling them why they were redirected.
Slack discussion: https://yunity.slack.com/archives/C1T1ZM9A4/p1591790697237300
How confident are you it won't break things if deployed?
Very sure
How to test
Steps a reviewer can take to verify that this MR does what it says it does e.g.
- Checkout branch locally
- Login as foodsaver
- Go to your region's forum page
- Change the region number in the address to a region that the user is not a member of
- When you are redirected to the dashboard you should see a notification
Screenshots (if applicable)
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s)) -
Once your MR has been merged, you are responsible to update the #foodsharing-beta Slack channel about what has been changed here. They will test your work in different browsers, roles or other settings