remove old style parameters from permalink