Factored out URL swapping for self-kind of links