mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-29 05:15:12 +02:00
Tiny fix for certain doc names (#143)
This commit is contained in:
@@ -147,7 +147,13 @@ def iterate_post_batches(
|
|||||||
def get_slab_url_from_title_id(base_url: str, title: str, page_id: str) -> str:
|
def get_slab_url_from_title_id(base_url: str, title: str, page_id: str) -> str:
|
||||||
"""This is not a documented approach but seems to be the way it works currently
|
"""This is not a documented approach but seems to be the way it works currently
|
||||||
May be subject to change without notification"""
|
May be subject to change without notification"""
|
||||||
title = title.replace("[", "").replace("]", "").replace(" ", "-").lower()
|
title = (
|
||||||
|
title.replace("[", "")
|
||||||
|
.replace("]", "")
|
||||||
|
.replace(":", "")
|
||||||
|
.replace(" ", "-")
|
||||||
|
.lower()
|
||||||
|
)
|
||||||
url_id = title + "-" + page_id
|
url_id = title + "-" + page_id
|
||||||
return urljoin(urljoin(base_url, "posts/"), url_id)
|
return urljoin(urljoin(base_url, "posts/"), url_id)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user