-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix styles for "You do not have permission" screen #129715
Fix styles for "You do not have permission" screen #129715
Conversation
Pinging @elastic/kibana-security (Team:Security) |
@@ -178,7 +178,7 @@ export class AuthorizationService { | |||
http.registerOnPreResponse((request, preResponse, toolkit) => { | |||
if (preResponse.statusCode === 403 && canRedirectRequest(request)) { | |||
const next = `${http.basePath.get(request)}${request.url.pathname}${request.url.search}`; | |||
const body = renderToStaticMarkup( | |||
const body = renderToString( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
emotion does not support server side rendering via renderToStaticMarkup()
so using renderToString()
instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]
History
To update your PR or re-run it, just comment with: |
* Fix styles for "You do not have permission" screen * . Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit b5dae38)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
* Fix styles for "You do not have permission" screen * . Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit b5dae38) Co-authored-by: Thom Heymann <190132+thomheymann@users.noreply.github.com>
Resolves #124490
Fix styles for "You do not have permission" screen.
Before
After