Delete path extension from p() too