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

fix(ui): ensure that UI nginx routes to index.html as fallback #824

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

Tehsmash
Copy link
Contributor

Description

As we're using virtual page routing in our UI, URLs which are unknown to nginx should redirect to the index.html so that they can be resolved by the React router.

Closes #819

Type of Change

[X] Bug Fix
[ ] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

  • I have read the contributing guidelines
  • Existing issues have been referenced (where applicable)
  • I have verified this change is not present in other open pull requests
  • Functionality is documented
  • All code style checks pass
  • New code contribution is covered by automated tests
  • All new and existing tests pass

As we're using virtual page routing in our UI, URLs which are unknown to
nginx should redirect to the index.html so that they can be resolved by
the React router.
@Tehsmash Tehsmash requested a review from a team as a code owner October 18, 2023 10:18
@github-actions
Copy link

Hey!

Your images are ready:

  • ghcr.io/openclarity/vmclarity-apiserver-dev:pr824-5acbdcfa90d9c75a938ab1d547d432c507cb1d0d
  • ghcr.io/openclarity/vmclarity-orchestrator-dev:pr824-5acbdcfa90d9c75a938ab1d547d432c507cb1d0d
  • ghcr.io/openclarity/vmclarity-ui-backend-dev:pr824-5acbdcfa90d9c75a938ab1d547d432c507cb1d0d
  • ghcr.io/openclarity/vmclarity-ui-dev:pr824-5acbdcfa90d9c75a938ab1d547d432c507cb1d0d
  • ghcr.io/openclarity/vmclarity-cli-dev:pr824-5acbdcfa90d9c75a938ab1d547d432c507cb1d0d

@Tehsmash Tehsmash added this pull request to the merge queue Oct 18, 2023
Merged via the queue into main with commit 272dbba Oct 18, 2023
32 checks passed
@Tehsmash Tehsmash deleted the nginx_ui_nav_fix branch October 18, 2023 12:16
@chrisgacsal chrisgacsal mentioned this pull request Nov 6, 2023
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

404 nginx error when accessing the UI from non root URL
2 participants