Fix issues caused by Jenkins permalinks not behaving as promised in the docs