mosaic-ck: fix redirects for URLs on the same domain