2
0

feat(settings): ️ Can disable query params auto hide

This commit is contained in:
Baptiste Arnaud
2022-05-14 11:53:59 -07:00
parent 731e646377
commit 42721865c5
5 changed files with 66 additions and 2 deletions

View File

@ -53,7 +53,11 @@ export const TypebotPage = ({
const clearQueryParams = () => {
const hasQueryParams = asPath.includes('?')
if (hasQueryParams) push(asPath.split('?')[0], undefined, { shallow: true })
if (
hasQueryParams &&
typebot.settings.general.isHideQueryParamsEnabled !== false
)
push(asPath.split('?')[0], undefined, { shallow: true })
}
const initializeResult = async () => {