Non-existant URL redirects to existant one

If with “update of the permalinks” you mean updating the post’s slug:

WordPress uses a function called wp_old_slug_redirect() to find out if you’re looking for a post whose slug was recently changed and redirect you to its new home.

tech