From e96423e6fe5134e88690350936bbdf95d50528ee Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Sun, 6 Dec 2020 14:58:55 +0530 Subject: [PATCH] :bug: FIx redirect to config path page --- src/utils/createOctokit.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/createOctokit.js b/src/utils/createOctokit.js index fe108da..69506e0 100644 --- a/src/utils/createOctokit.js +++ b/src/utils/createOctokit.js @@ -21,11 +21,11 @@ export const createOctokit = () => { export const handleError = (error) => { if (error.message === "Bad credentials") { - window.location.href = "/error"; + window.location.href = config.path + "/error"; } else if ((error.message || "").indexOf("rate limit exceeded") > -1) { - window.location.href = "/rate-limit-exceeded"; + window.location.href = config.path + "/rate-limit-exceeded"; } else { - window.location.href = "/error"; + window.location.href = config.path + "/error"; console.log(error.message); } };