@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.
@@ -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
- return `${server}/pages/viewpage.action?pageId=${encodeURIComponent(hit.pageId)}`;
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wonseok-han/confluence-sync",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "type": "module",
5
5
  "description": "Confluence Cloud ↔ Markdown 양방향 동기화 CLI — 마크다운을 Confluence 페이지로 발행(push)하고, Confluence 페이지·폴더·스페이스를 마크다운으로 가져옵니다(pull).",
6
6
  "keywords": [