add path replace instead of path remove in pathnameOnly
e.g. /sockjs => 127.0.0.1:3000/sockjs instead of 127.0.0.1:3000