<p></p>
<p dir="auto">I tested this on Firefox:</p>
<ul dir="auto">
<li>I pressed "Load more" a few times</li>
<li>clicked on a changeset further down in the list, and</li>
<li>pressed the back button to return to the list of changesets.<br>
result: previous state was restored.</li>
</ul>
<p dir="auto">However, in some cases, when I click on the very first entry in the list of changesets, and then hit the back button, the previous state is lost somehow, and I only see the very first page of changesets. I cannot reliably reproduce the issue, it might be some timing issue.</p>
<p dir="auto">Storing all the data as HTML fragments feels a bit heavy to me. As a browser only solution, you're a bit limited in what you can do client side  (Rails  returns the data as rendered HTML only.)  At least you have added a max entry limit of 10 lat/lon keys to avoid accumulating too much data.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/3682#issuecomment-1336492870">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOHKIQD6FPWPLBCEXLWLTTNDANCNFSM6AAAAAAQJAE6YU">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLINF5DJOLCHOJ3DAKTWLTTNDA5CNFSM6AAAAAAQJAE6YWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTSPVFBUM.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/3682/c1336492870</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/3682#issuecomment-1336492870",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/3682#issuecomment-1336492870",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>