freeipa / freeipa-webui

FreeIPA Web UI
GNU General Public License v3.0
23 stars 11 forks source link

Page refresh on user details leads to blank page and error message #266

Closed miskopo closed 1 month ago

miskopo commented 8 months ago

Description of a problem

When refreshing the page on user settings (via F5 or browser's refresh button), the page loads into blank state and following errors are shown in the console:

The stylesheet https://ipa.demo-modernui.freeipa.org/ipa/modern_ui/active-users/app.css was not loaded because its MIME type, "text/html", is not "text/css". [settings](https://ipa.demo-modernui.freeipa.org/ipa/modern_ui/active-users/settings)
Uncaught SyntaxError: expected expression, got '<'
[app.bundle.js:1:1](https://ipa.demo-modernui.freeipa.org/ipa/modern_ui/active-users/js/app.bundle.js)
Uncaught SyntaxError: expected expression, got '<'
[vendor.bundle.js:1:1](https://ipa.demo-modernui.freeipa.org/ipa/modern_ui/active-users/js/vendor.bundle.js)

Steps to reproduce

  1. Open the user details for any user
  2. Press F5 or browser's refresh button

Expected behaviour:

The page is reloaded at the current context

Actual behaviour:

The page errors into blank state

mreynolds389 commented 1 month ago

This has been fixed recently with changes to how the URL is handled. Closing issue.