How to trigger a page refresh in the Admin UI after logging out

System Information
  • Strapi Version: v4
  • Operating System: windows
  • Database: Postgres
  • Node Version: 20.10.0
  • NPM Version: 10.2.5
  • Yarn Version: -

Refresh page to append url which will be added from redirect middleware once user logout from the session.

Requirement: Once a user is in /admin or /admin/auth/login page have added redirect middleware to display one collection type screen to user. This is working as expected. But, once user logout manually url is not getting refreshed with the required url such as admin/content-manager/collectionType/api::api-name.api-name.

Please let help me know if there any insights around this