Skip to content

Commit

Permalink
fix: improper fetching space route
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Jul 1, 2023
1 parent cec6500 commit bab9a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiki/wiki/doctype/wiki_page_patch/wiki_page_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def create_new_wiki_page(self):
wiki_page_dict = {
"title": self.new_title,
"content": self.new_code,
"route": "/".join(self.wiki_page_doc.get_space_route() + [cleanup_page_name(self.new_title)]),
"route": f"{self.wiki_page_doc.get_space_route()}/{cleanup_page_name(self.new_title)}",
"published": 1,
"allow_guest": self.wiki_page_doc.allow_guest,
}
Expand Down

0 comments on commit bab9a33

Please sign in to comment.