Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-11158: fix subpath logout #1409

Merged
merged 1 commit into from
Jul 6, 2018
Merged

Conversation

lieut-data
Copy link
Member

Summary

Fall back to window.basename instead of window.location.origin, to ensure the subpath is reflected on logout. This ended up being a last minute regression in the PR phase :/

Ticket Link

https://mattermost.atlassian.net/browse/MM-11158

Checklist

  • Ran make check-style to check for style errors (required for all pull requests)
  • Ran make test to ensure unit and component tests passed

@lieut-data lieut-data added the 2: Dev Review Requires review by a core commiter label Jul 4, 2018
Fall back to window.basename instead of window.location.origin, to
ensure the subpath is reflected on logout.
@lieut-data lieut-data changed the base branch from master to release-5.1 July 4, 2018 21:18
@lieut-data lieut-data force-pushed the mm-11158-fix-subpath-logout branch from 7f3f9a7 to a9965f7 Compare July 4, 2018 21:18
@lieut-data lieut-data added this to the v5.1.0 milestone Jul 4, 2018
Copy link
Member

@saturninoabril saturninoabril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non-blocking but maybe getBasePath selector is not necessary.
I feel like it's more of a utility function by passing config.SiteURL.

@lieut-data
Copy link
Member Author

Yeah, I see what you mean: the input to the selector is not only the store, so it's not really a true selector. I'll leave it as-is for now to reduce churn, but keep this in mind going forward -- thanks!

@sudheerDev sudheerDev added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter labels Jul 6, 2018
@cpanato cpanato self-assigned this Jul 6, 2018
@cpanato cpanato merged commit a35b9bd into release-5.1 Jul 6, 2018
@cpanato cpanato deleted the mm-11158-fix-subpath-logout branch July 6, 2018 08:08
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Jul 6, 2018
@lindalumitchell lindalumitchell added the Tests/Done Release tests have been written label Jul 11, 2018
fincha pushed a commit to fincha/mattermost-webapp that referenced this pull request Oct 21, 2018
Fall back to window.basename instead of window.location.origin, to
ensure the subpath is reflected on logout.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation Tests/Done Release tests have been written
Projects
None yet
6 participants