parse url params using url module
use url module to build targetUrl