fix regression always returning a redirect instead of a proper success payload