Skip to content
Snippets Groups Projects
Commit 8a7fd890 authored by David Smadja's avatar David Smadja
Browse files

Keep tab variable valid in url to allow old saved/shared url to work properly

parent 0e782af5
Branches
Tags
1 merge request!272Reflexions feuille de paie
Pipeline #19287 passed
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
cleanAudit, cleanAudit,
auditFunction, auditFunction,
auditOptions, auditOptions,
auditSetValue,
} from "@auditors/core" } from "@auditors/core"
import type { PopulationWithoutId } from "@openfisca/json-model" import type { PopulationWithoutId } from "@openfisca/json-model"
import * as htmlToImage from "html-to-image" import * as htmlToImage from "html-to-image"
...@@ -317,6 +318,16 @@ ...@@ -317,6 +318,16 @@
remainingKeys, remainingKeys,
auditQuerySingleton(auditTrimString), auditQuerySingleton(auditTrimString),
) )
// Obsolete parameter must be ignored, but kept as valid in URL to prevent old url from returning wrong page
audit.attribute(
data,
"tab",
true,
errors,
remainingKeys,
auditQuerySingleton(auditTrimString),
auditSetValue(null),
)
audit.attribute( audit.attribute(
data, data,
"test_case", "test_case",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment