Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion components/confluence/confluence.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,15 @@ export default {
_extractCursorFromLink(link) {
if (!link) return null;
try {
const url = new URL(link);
// Handle cases where link might be just a path or relative URL
let url;
if (link.startsWith("http")) {
url = new URL(link);
} else {
// If it's a path or relative URL, construct a full URL
const baseUrl = "https://api.atlassian.com";
url = new URL(link, baseUrl);
}
return url.searchParams.get("cursor");
} catch (e) {
console.log("Error extracting cursor from link:", e);
Expand Down