Apply domain parameters each time url is changed