mattermost / desktop

Mattermost Desktop application for Windows, Mac and Linux
Apache License 2.0
2k stars 815 forks source link

[MM-58593] Ensure desktop app reloads the current URL when reloading manually #3061

Closed devinbinnie closed 3 months ago

devinbinnie commented 3 months ago

Summary

The Desktop App was always reloading the base URL when hitting Cmd/Ctrl+R, which would usually work when the current channel was the one you were on, but would sometimes navigate you elsewhere. This could be observed when reloading on the Threads view.

This PR changes the behaviour to reload the current URL when available, so that we try to stay on the same page.

Ticket Link

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

Fixed an issue where reloading the webapp would not always take you back to the same URL