dengliming opened a new issue, #604:
URL: https://github.com/apache/shenyu-dashboard/issues/604
## Description
In the unauthorized branch of `AuthRoute.render`, the code returns a
`<Route>` whose `path` is the redirect target (`/exception/403`) with a `null`
component. That route never matches the current location, so nothing is
rendered; the user is never sent to the 403 page.
## Location
(Lines refer to `master @ 83969a5`.)
- `src/utils/AuthRoute.js:316-325`
## Impact
A user who opens a URL for a menu they are not authorized for (e.g.
`/config/plugin` with a restricted role, or via the empty-parent-menu link)
sees a blank content area with no explanation. The `redirectPath` prop is
effectively dead.
## Suggested fix
Return `<Redirect to={redirectPath} />` (or, with react-router v6,
`<Navigate to={redirectPath} replace />`) in the unauthorized branch.
## Related existing
None
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]