mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
Bugfix: Support more Confluence Cloud hostname (*.jira.com) (#1244)
This commit is contained in:
parent
aaa7b26a4d
commit
920d059da5
@ -75,7 +75,7 @@ def _extract_confluence_keys_from_datacenter_url(wiki_url: str) -> tuple[str, st
|
||||
|
||||
|
||||
def extract_confluence_keys_from_url(wiki_url: str) -> tuple[str, str, bool]:
|
||||
is_confluence_cloud = ".atlassian.net/wiki/spaces/" in wiki_url
|
||||
is_confluence_cloud = ".atlassian.net/wiki/spaces/" in wiki_url or ".jira.com/wiki/spaces/" in wiki_url
|
||||
|
||||
try:
|
||||
if is_confluence_cloud:
|
||||
|
@ -43,7 +43,7 @@ const extractSpaceFromDataCenterUrl = (wikiUrl: string): string => {
|
||||
// Copied from the `extract_confluence_keys_from_url` function
|
||||
const extractSpaceFromUrl = (wikiUrl: string): string | null => {
|
||||
try {
|
||||
if (wikiUrl.includes(".atlassian.net/wiki/spaces/")) {
|
||||
if (wikiUrl.includes(".atlassian.net/wiki/spaces/") || wikiUrl.includes(".jira.com/wiki/spaces/")) {
|
||||
return extractSpaceFromCloudUrl(wikiUrl);
|
||||
}
|
||||
return extractSpaceFromDataCenterUrl(wikiUrl);
|
||||
|
Loading…
x
Reference in New Issue
Block a user