Signing in via the 'Sign in' link in the header always returns to the current page

Previously, if you visited a page that requires authentication (like /locations/1/edit),
then fooled around somewhere else on the site (without logging in), then finally signed
in via the modal, you would mysteriously land on /locations/1/edit.