How to Add a Floating Back Button in Discourse (For Mobile Users)

For Chrome, you can swipe from the left edge to go back.
On browsers, my phone’s back button also works. Does it work for you?
IIRC you can use api.onPageChange() and then get the page url.
See: