Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
OasisAkari committed Jul 29, 2024
1 parent 38f6494 commit dd1348f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/wiki/utils/wikilib.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ async def search_something(srwhat):
page_info.link = full_url
page_info.file = file
page_info.desc = page_desc
if not _iw and not page_info.args:
if not _iw and not page_info.args and page_info.id != -1:
page_info.link = self.wiki_info.script + f'?curid={page_info.id}'
else:
page_info.title = query_langlinks.title
Expand Down Expand Up @@ -758,7 +758,7 @@ async def search_something(srwhat):
page_info.before_title = before_page_info.title
t = page_info.title
if t:
if before_page_info.args:
if before_page_info.args or page_info.id == -1:
page_info.before_title += urllib.parse.unquote(before_page_info.args)
t += urllib.parse.unquote(before_page_info.args)
if page_info.link:
Expand Down

0 comments on commit dd1348f

Please sign in to comment.