model.location: add local redirect to location model.
model.location: add local redirect to location model.

This ensures that the redirect stays within the current origin. This is useful
for redirects in authentication flows, which should be restricted to the current site.

cotonic/cotonic,cotonic/cotonic,cotonic/cotonic,cotonic/cotonic