Generate hubs url from the incoming request path.

#1346