Skip to content

Make internal redirect inside onBeforeRender #721

Discussion options

You must be logged in to vote

How about making your Page defined in pages/data/index.page.ts render the error page while setting a new prop pageContext.isNotAuthorized that you can use at renderPage() to show the correct status code?

I newbie in VPS, but I highly enjoy VPS and really appreciate the maintainer's job in this plugin.

Thanks for your kind words, I appreciate it.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@brillout
Comment options

@edikdeisling
Comment options

@brillout
Comment options

@edikdeisling
Comment options

@brillout
Comment options

Answer selected by edikdeisling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants