5 ms·
Found the offending logic here [1]. Looks like it uses React Router's history.goBack method [2], which probably defaults to the browser history method you menti
by ecuaflo 3y ago
Found the offending logic here [1]. Looks like it uses React Router's history.goBack method [2], which probably defaults to the browser history method you mentioned when there's nothing else. That if statement should be conditioned on the react router history, not window.history. I submitted a PR to fix this [3]
[1] https://github.com/mastodon/mastodon/blob/ff3b7069cf9dd8fc3fa479184db833fbd46472a4/app/javascript/mastodon/components/column_back_button.jsx#L25 https://github.com/mastodon/mastodon/blob/ff3b7069cf9dd8fc3f...
[2] https://v5.reactrouter.com/web/api/history https://v5.reactrouter.com/web/api/history
[3] https://github.com/mastodon/mastodon/pull/24835 https://github.com/mastodon/mastodon/pull/24835