Fixed up urls using sessions