@wonseok-han/confluence-sync 1.6.0 → 1.6.1
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/dist/sync/references.js +4 -1
- package/package.json +1 -1
package/dist/sync/references.js
CHANGED
|
@@ -87,7 +87,10 @@ export function buildReferenceLookup(base, rels, roots, baseUrl) {
|
|
|
87
87
|
return null;
|
|
88
88
|
}
|
|
89
89
|
linked(`${target} → pageId ${hit.pageId} (${join(hit.root, hit.rel)})`);
|
|
90
|
-
|
|
90
|
+
// The API gateway has no browser UI. References are already restricted to
|
|
91
|
+
// the same server, so Cloud links can use the viewing site's /wiki root.
|
|
92
|
+
const pageBase = new URL(server).hostname === 'api.atlassian.com' ? '/wiki' : server;
|
|
93
|
+
return `${pageBase}/pages/viewpage.action?pageId=${encodeURIComponent(hit.pageId)}`;
|
|
91
94
|
},
|
|
92
95
|
};
|
|
93
96
|
}
|
package/package.json
CHANGED