fix package page when url is empty