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

[Task] Allow setting a basepath for routes via an environment variable #1533

Closed
aptmac opened this issue Jan 17, 2025 · 1 comment · Fixed by #1534
Closed

[Task] Allow setting a basepath for routes via an environment variable #1533

aptmac opened this issue Jan 17, 2025 · 1 comment · Fixed by #1534
Assignees
Labels
feat New feature or request

Comments

@aptmac
Copy link
Member

aptmac commented Jan 17, 2025

It would be nice to allow for a basepath to be set as an environment variable, which would prepend a string to the routes and paths that cryostat-web makes. This would be helpful when nesting cryostat-web inside other applications (the console plugin for example) where there already may be existing pages and routes that would conflict with cryostat-web.

For example, the OpenShift Console has it's own topology view a /topology, so nesting a Topology view from cryostat-web into the Console requires a different route. By setting a basepath of 'cryostat' we can change the cryostat-web route to be /cryostat/topology instead, and avoid route conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants