Fixing issue where params object was not being passed to server url fetch