1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-04-21 21:21:31 +00:00

Compare commits

..

2 Commits

Author SHA1 Message Date
Sead Mulahasanović 5bd641b843 Merge pull request #871 from sasjs/mihajlo/viyaWebContextName
fix: viya, web approach, contexname not added to the url if contains …
2026-02-06 12:37:55 +01:00
M 539fe5f4ed fix: viya, web approach, contexname not added to the url if contains spaces between the words 2026-02-06 12:05:02 +01:00
3 changed files with 192 additions and 302 deletions
+187 -295
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -53,7 +53,7 @@
"cp": "0.2.0", "cp": "0.2.0",
"cypress": "^15.7.1", "cypress": "^15.7.1",
"dotenv": "16.0.0", "dotenv": "16.0.0",
"express": "4.22.1", "express": "4.17.3",
"jest": "29.7.0", "jest": "29.7.0",
"jest-environment-jsdom": "^29.7.0", "jest-environment-jsdom": "^29.7.0",
"jest-extended": "4.0.2", "jest-extended": "4.0.2",
+3 -5
View File
@@ -97,11 +97,9 @@ export class WebJobExecutor extends BaseJobExecutor {
apiUrl = apiUrl.replace('_program=', '__program=') apiUrl = apiUrl.replace('_program=', '__program=')
} }
// if context name exists and is not blank string // Append context name to URL if provided and non-empty
// then add _contextname variable in apiUrl apiUrl += config.contextName?.trim()
apiUrl += ? `&_contextname=${encodeURIComponent(config.contextName)}`
config.contextName && !/\s/.test(config.contextName)
? `&_contextname=${config.contextName}`
: '' : ''
} }