Error when deploying forked keycloak-ui admin theme #13906
PManaras
started this conversation in
New Admin Console
Replies: 1 comment
-
@PManaras we're currently migrating to a newer version of React Router so you might run into incompatibilities. We expect that we'll be migrating over fully to the new version in the comings weeks. For more information see the React Router docmentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
i just started to look into customizing the Admin Ui of keycloak.v2. As mentioned in another thread, since there is no easy way of extending the admin console yet, i forked the theme, but i am encountering some issues:
The first issue appears when deploying to the development Keycloak, bundled in the keycloak-ui project. I added a simple custom navigation item to the PageNav pointing to my module, but when clicking it, the dashboard view is shown. When typing the expected link (/:realm/<my_module>/<my_tab>) in the address bar, the page shows up as expected.
It seems to me that somehow the defaultLocation defined in the RoutableTabs component is ignored or the path to my module is not resolved (i.e. somehow my routing is broken).
If the module would not be found, the nav item would not appear, that's why i am confused.
I have added the routes.ts of my module to the routes-config.ts as well.
my_module/routes.ts:
my_module/routes/MyModule.ts:
MyModuleSection.tsx:
The jar builds just fine without any issues.
if you could point me in the right direction to solve the issue, i'd be very happy
EDIT:
The page now shows up correctly. I have appended a "?" to the
/:realm/mymodule/:tab
path. The only Problem left is, that i cannot switch tabs.EDIT2:
Was using the wrong react router for generatePath, now everything works as expected. (!use: react-router-dom!)
Regards Pascal
Beta Was this translation helpful? Give feedback.
All reactions