I like not having Save buttons.
Say I have a template called “editOne” and the route is /thing/:slug (based on the name). When the name changes on this totally amazing reactive page without a save button then my current url becomes invalid - the router fires and I get a 404 until I can refresh with the new slug.
Name of my thing is “Thing One”
Edit it at http://localhost:3000/things/thing-one
Name of thing is changed to Thing Two - it recalculates the slug and then
localhost:3000/things/thing-one - 404 - Not found. ('Kay - tis correct but I wish you’d redirected me).
Is there a canonical way fo doing this (a redirect) or a more elegant way of avoiding it? What is this problem usually called?
Any help greatly appreciated (preferrably not coffee as it makes my eyes bleed),