Fixed constructing parametrized URLs