Support relative urls and change cookies path