@goralys/core 1.6.1 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -457,7 +457,7 @@ async function goralysFetchClient(method, input, payload, requestOptions) {
|
|
|
457
457
|
if (!(contentType && contentType.toLowerCase().trim().includes("application/json")))
|
|
458
458
|
return res;
|
|
459
459
|
const data = await clone.json();
|
|
460
|
-
if (data?.redirect && requestOptions?.suppressRedirect) {
|
|
460
|
+
if (data?.redirect && !requestOptions?.suppressRedirect) {
|
|
461
461
|
emitNavigationEvent({ type: "redirect", url: data.redirect });
|
|
462
462
|
}
|
|
463
463
|
if (res.status === 401) {
|