Fixed link generation when not at root of site.