handle not using a pretty url correctly