CSR-2066
force reload if redirected from external application
This commit is contained in:
parent
471fed22e3
commit
e5733928f6
1 changed files with 9 additions and 0 deletions
|
|
@ -46,10 +46,19 @@ import baseMixin from "@/mixins/base-mixin.js";
|
||||||
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
|
import { navigateToHeritageFunnel } from "@/helpers/heritage-integration/navigation-helper";
|
||||||
import { applicationConfig } from "@/constants/application-config";
|
import { applicationConfig } from "@/constants/application-config";
|
||||||
import store from "@/store";
|
import store from "@/store";
|
||||||
|
import router from "@/router";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "insurance-company",
|
name: "insurance-company",
|
||||||
async beforeRouteEnter(to, from, next) {
|
async beforeRouteEnter(to, from, next) {
|
||||||
|
//force reload if redirected from external application
|
||||||
|
if (from.redirectedFrom === undefined && !sessionStorage.getItem("reloaded")) {
|
||||||
|
sessionStorage.setItem("reloaded", "true");
|
||||||
|
router.go(0);
|
||||||
|
} else {
|
||||||
|
sessionStorage.removeItem("reloaded");
|
||||||
|
}
|
||||||
|
|
||||||
// Call APIs
|
// Call APIs
|
||||||
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
const cmsContentPromise = fetchCmsContentForPage(to.query.fmgPage);
|
||||||
const insuranceCompanyListPromise = baseMixin.methods.dispatchStoreActionWithLogging(
|
const insuranceCompanyListPromise = baseMixin.methods.dispatchStoreActionWithLogging(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue