Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: null error at useRouteMatch when running on tutor
tutor sets the PUBLIC_PATH to '/discussions' which causes frontend-platform to treat all URLs for matching etc to be relative to this path. Since many places include '/discussions' in the match it causes those matches to break. This change makes the default PUBLIC_PATH in .env.development to match the one set by tutor and removes it from the base path of the router letting frontend platform handle the prefix. This also allows for deployments to customise this path to be something other then 'discussions'.
- Loading branch information