@aipper/zentao-mcp-server 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/zentao.js +3 -1
package/package.json
CHANGED
package/src/zentao.js
CHANGED
|
@@ -517,7 +517,9 @@ export function createZenTaoClient(config) {
|
|
|
517
517
|
: cleaned.startsWith("//")
|
|
518
518
|
? new URL(`${baseProtocol}${cleaned}`)
|
|
519
519
|
: cleaned.startsWith("/")
|
|
520
|
-
?
|
|
520
|
+
? (cleaned.includes("?") || cleaned.includes("#"))
|
|
521
|
+
? new URL(cleaned.replace(/^\//, ""), deploymentBaseUrl)
|
|
522
|
+
: resolveAgainstDeploymentPath(cleaned)
|
|
521
523
|
: resolveAgainstDeploymentPath(`/${cleaned.replace(/^\.?\//, "")}`);
|
|
522
524
|
if (candidate.origin !== baseOrigin) return "";
|
|
523
525
|
return candidate.toString();
|