updated URL calculation on front page