Autosaves hashes not stored/sent correctly when query string present in URL
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3554977. --> Reported by: [jessebaker](https://www.drupal.org/user/3546546) Related to !271 >>> <h3 id="overview">Overview</h3> <p>When the autosaveshash is received from the server it is stored on the client and then returned to the server when future changes are sent. The autosaveshash is keyed by the URL however if the URL has a querystring or hash on the end the autosaveshash is stored against a malformed key.</p> <p>Steps:<br> Visit /canvas/editor/canvas_page/1?this_breaks_stuff<br> Attempt to edit a prop of a component instance on that page<br> Observe that the update fails and that there are errors in the console.</p> <p>This can commonly happen when editing a page via the "Edit" button on <code>/admin/content/pages</code></p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>Ensure the URL is stripped of anything after ? or # characters before using it as key!</p> <h3 id="ui-changes">User interface changes</h3>
issue