opened
lieut-data
username_0
#### Summary
Rely on window.basename, exported as part of the [previous changes](https://github.com/mattermost/mattermost-webapp/pull/1321) re: subpath, to configure react-router (and one exceptional case re: text formatting).

@hmhealey, I've specifically added you to this PR given our discussion re: text_formatting.jsx and the shortcut I've taken here. I'm not super excited about the global, but I didn't want to do a wholescale refactor of the use of `browserHistory`, and the global usage is constrained to just two places. I'd love your feedback!

#### Ticket Link
https://mattermost.atlassian.net/browse/MM-10368
https://mattermost.atlassian.net/browse/MM-10369

#### Checklist
- [x] Ran `make check-style` to check for style errors (required for all pull requests)
- [x] Ran `make test` to ensure unit and component tests passed
- [x] Added or updated unit tests (required for all new features)
- [x] Has server changes: https://github.com/mattermost/mattermost-server/pull/8968
MM-10368: react-router subpath
issue
created
mattermod
username_1
`Setup Test Server` label detected. Spinmint test server created if build succeeds (checks pass and no conflicts with base branch).
comment
created
mattermod
username_1
Spinmint test server destroyed
comment