Skip to content
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

Double Slash in URL After Menu Tab Changes When Accessing Database in App Central #4594

Open
1 task done
Fernananas opened this issue Jan 9, 2025 · 0 comments
Open
1 task done
Labels
bug Something isn't working ern

Comments

@Fernananas
Copy link

Have you checked if this issue already exists?

  • yes

Molgenis EMX2 version

v11.41.6. Database version: 23.

Description

After updating the menu configuration for a newly created database with template ERN-DASHBOARD, the URLs in App Central contain double slashes (//), leading to unexpected behavior.

Reproduction steps

  1. Create a new database using the ERN_DASHBOARD template.
  2. Navigate to the newly created database.
  3. Go to Settings → Advanced Settings.
  4. Update the menu configuration with the following setting:
[
  {"label":"Submit & Edit Patients","href":"/apps/central/#/","key":"9848tn","submenu":[],"role":"Viewer"},
  {"label":"About us","href":"ern-skin/#/about","key":"pgjz9","submenu":[],"role":"Viewer"},
  {"label":"Documents","href":"ern-skin/#/documents","key":"n2hkir","submenu":[],"role":"Viewer"},
  {"label":"Dashboard","href":"ern-skin/#/dashboard","key":"jz1bh","submenu":[],"role":"Viewer"},
  {"label":"Scientific Studies","href":"","key":"lrzlt5","submenu":[{"label":"RDEB Cardiomyopathy","href":"","key":"47ipu","role":"Viewer"}],"role":"Viewer"},
  {"label":"Up/Download","href":"updownload","role":"Editor","key":"xu0ot","submenu":[]},
  {"label":"Admin","href":"","key":"id788","submenu":[
    {"label":"Tables","href":"tables","role":"Editor","key":"0filqf"},
    {"label":"Schema","href":"schema","role":"Manager","key":"40z2jf"},
    {"label":"Graphql","href":"graphql-playground","role":"Editor","key":"8jdyx6"},
    {"label":"Settings","href":"settings","role":"Manager","key":"va77y"}
  ],"role":"Manager"},
  {"label":"Help","href":"docs","role":"Viewer","key":"ji20i6j","submenu":[]}
]
  1. Navigate back to App Central.
  2. Click on the newly created database.
  3. See error

The URL contains double slashes (//), e.g., https://emx2.dev.molgenis.org/menuIssue//apps/central/#/.

Expected behaviour

The URL should not contain double slashes, e.g., https://emx2.dev.molgenis.org/menuIssue

System configuration

  • Device:
  • Operating system:
  • Browser:
@Fernananas Fernananas added bug Something isn't working ern labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ern
Projects
None yet
Development

No branches or pull requests

2 participants