fix issue with urls being wrong when website in a folder