Commit 22129ea
committed
Make -ApiVersion prefixing idempotent in Invoke-ConfluenceRestMethod
When -ApiVersion was combined with an -ApiEndpoint that already carries the /wiki/... root, the version prefix was prepended again, producing a doubled path (e.g. /wiki/api/v2/wiki/api/v2/spaces). Skip prefixing for endpoints that are already absolute (full URL or /wiki/*) so both documented usage styles - a relative path with -ApiVersion, or a full /wiki path without it - work safely (review thread on Invoke-ConfluenceRestMethod L80).1 parent 65f1ffb commit 22129ea
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
0 commit comments