fix pb with url in non pretty-url mode