We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9170e6 commit 63fe90cCopy full SHA for 63fe90c
python/index.py
@@ -25,7 +25,7 @@ def prepare(searchDoc: Union[SearchDoc, List[SearchDoc]]):
25
jsonDocs.append(
26
{
27
"@search.action": "mergeOrUpload",
28
- "id": base64.b64encode(searchDoc.url.encode()).decode(),
+ "id": base64.urlsafe_b64encode(searchDoc.url.encode()).decode().rstrip("="),
29
"title": searchDoc.title,
30
"excerpt": searchDoc.excerpt,
31
"author": searchDoc.author,
0 commit comments