fixed the path url in case no get arguments are present