{"id":44,"date":"2007-05-28T23:07:58","date_gmt":"2007-05-28T22:07:58","guid":{"rendered":"http:\/\/www.martyndavis.com\/?p=44"},"modified":"2007-05-28T23:07:58","modified_gmt":"2007-05-28T22:07:58","slug":"saving-your-route","status":"publish","type":"post","link":"https:\/\/www.martyndavis.com\/?p=44","title":{"rendered":"Saving Your Route"},"content":{"rendered":"<p>Having analysed the database, I see that there are quite a few people who have two or more saved routes with identical names.\u00a0 I want to clear up what may be some misunderstanding in this post&#8230;<!--more-->Essentially the long name you give a route when you are saving it can be any text.\u00a0 Your route is actually not identified by the name, but by an internal ID number &#8211; something you&#8217;d never see unless you were publishing your route&#8217;s URL (see previous post).\u00a0 This means that two routes can have exactly the same name, but will remain separate because they have differing IDs.\u00a0 If you want to MODIFY an existing route, be sure to press the &#8220;overwrite&#8221; button when saving&#8230; otherwise you&#8217;ll be writing a new route.<br \/>\nI can see this is possibly a little confusing.\u00a0 I may well make a change in a future release to prevent identically-named routes from being saved (or maybe prompt for overwrite when saving a route with the same name).\u00a0 In the meantime, please bear these points in mind when saving.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Having analysed the database, I see that there are quite a few people who have two or more saved routes with identical names.\u00a0 I want to clear up what may be some misunderstanding in this post&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts\/44"}],"collection":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44"}],"version-history":[{"count":0,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.martyndavis.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}