Added optional parameters to templated url