Problem:
When opening the 2nd (or more) pagination page in Dashboard, selecting any project's settings and refreshing the page, you are always redirected to Dashboard.
Solution:
When refreshing the page, stay on the project settings no matter what. Maybe check the redux state and if the project does not exist there (only the 1st page has been fetched), fetch the project's settings one by one.
And only redirect if the project is not accessible after trying to fetch the settings individually.
Problem: When opening the 2nd (or more) pagination page in Dashboard, selecting any project's settings and refreshing the page, you are always redirected to Dashboard.
Solution: When refreshing the page, stay on the project settings no matter what. Maybe check the redux state and if the project does not exist there (only the 1st page has been fetched), fetch the project's settings one by one. And only redirect if the project is not accessible after trying to fetch the settings individually.
Demonstration:
https://github.com/Swetrix/swetrix/assets/35810911/b0551ed2-efae-47c7-b82f-c3a9d60b627b