We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a3f4e5 commit 9e34c99Copy full SHA for 9e34c99
components/confluence/confluence.app.mjs
@@ -146,7 +146,15 @@ export default {
146
_extractCursorFromLink(link) {
147
if (!link) return null;
148
try {
149
- const url = new URL(link);
+ // Handle cases where link might be just a path or relative URL
150
+ let url;
151
+ if (link.startsWith("http")) {
152
+ url = new URL(link);
153
+ } else {
154
+ // If it's a path or relative URL, construct a full URL
155
+ const baseUrl = "https://api.atlassian.com";
156
+ url = new URL(link, baseUrl);
157
+ }
158
return url.searchParams.get("cursor");
159
} catch (e) {
160
console.log("Error extracting cursor from link:", e);
0 commit comments