handle next url in invitation accept view