fix error when url like http://domain.com/groups/0/abc.html