Skip to content

Commit

Permalink
Fix: don't strip "Main Page" from sitemap (#100)
Browse files Browse the repository at this point in the history
Bing.com for one doesn't seem to pick up URLs ending with /.
Hopefully is adding "Main Page" behind it again a solution that
works for it. There isn't really a drawback here, other than an
URL that looks a bit more ugly.
  • Loading branch information
TrueBrain authored Dec 1, 2020
1 parent 4aedb82 commit d5cb470
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions truewiki/views/sitemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ def view() -> web.Response:
for page, page_data in metadata.PAGES.items():
if page.startswith("Page/"):
page = page[len("Page/") :]
if page.endswith("/Main Page"):
page = page[: -len("/Main Page")] + "/"
page = urllib.parse.quote(page)

body += "<url>\n"
Expand Down

0 comments on commit d5cb470

Please sign in to comment.