fix: url action execution order for actions on page load (#10224)

Order of execution was not proper because the dynamic parameters embedded inside url without any trailing slashes and query params did not match with url grouping regex to convert the query params to dsl params.

Fixes #10049
Fixes #10055
This commit is contained in:
Aman Agarwal 2022-01-07 17:27:51 +05:30 committed by GitHub
parent 28d05e29fc
commit cc90c6a33a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ export interface ExecuteErrorPayload extends ErrorActionPayload {
// Group 1 = datasource (https://www.domain.com)
// Group 2 = path (/nested/path)
// Group 3 = params (?param=123&param2=12)
export const urlGroupsRegexExp = /^(https?:\/{2}\S+?)(\/[\s\S]*?)(\?(?![^{]*})[\s\S]*)?$/;
export const urlGroupsRegexExp = /^(https?:\/{2}\S+?)(\/[\s\S]*?)?(\?(?![^{]*})[\s\S]*)?$/;
export const EXECUTION_PARAM_KEY = "executionParams";
export const THIS_DOT_PARAMS_KEY = "params";