Skip to content

Fix <Show> doesn't honor the redirectOnError prop - #11450

Merged
fzaninotto merged 1 commit into
masterfrom
fix/show-redirect-on-error
Nov 12, 2026
Merged

fzaninotto merged 1 commit into
masterfrom
fix/show-redirect-on-error

Conversation

@ThieryMichel

@ThieryMichel ThieryMichel commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The redirectOnError prop on has no effect, contrary to the docs (https://marmelab.com/react-admin/Show.html#redirectonerror).

Solution

Have Show pass redirectOnError to ShowBase

How To Test

Test the SHow > Redirect on Error story

Additional Checks

  • The PR targets master for a bugfix or a documentation fix, or next for a feature
  • The PR includes unit tests (if not possible, describe why)
  • The PR includes one or several stories (if not possible, describe why)
  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@ThieryMichel
ThieryMichel force-pushed the fix/show-redirect-on-error branch from 49ad1a2 to 6c567cc Compare November 12, 2026 16:05
@fzaninotto
fzaninotto merged commit f2cb514 into master Nov 12, 2026
15 checks passed
@fzaninotto
fzaninotto deleted the fix/show-redirect-on-error branch November 12, 2026 16:17
@fzaninotto fzaninotto added this to the 5.15.7 milestone Nov 12, 2026
@fzaninotto fzaninotto changed the title fix: Forward redirectOnError prop in <Show> Fix <Show> doesn't honor the redirectOnError prop Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants