import { setIsoData } from "@utils/app";
+import removeAuthParam from "@utils/helpers/remove-auth-param";
import { Component } from "inferno";
import { T } from "inferno-i18next-dess";
import { Link } from "inferno-router";
<T
i18nKey="error_code_message"
parent="p"
- interpolation={{ error: errorPageData.error }}
+ interpolation={{ error: removeAuthParam(errorPageData.error) }}
>
#<strong className="text-danger">#</strong>#
</T>
--- /dev/null
+export default function (err: any) {
+ return err
+ .toString()
+ .replace(new RegExp("[?&]auth=[^&#]*(#.*)?$"), "$1")
+ .replace(new RegExp("([?&])auth=[^&]*&"), "$1");
+}