You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bootstrap3_searchform() builds an outdated search URL. The URL currently built by bootstrap3 uses id=searched-test&do=search. Current DokuWiki needs q=searched-text&do=search. DokuWiki itself detects this condition and sends a redirect, so most of the time, this goes unnoticed. There are conditions where this can lead to DokuWiki not searching anything, but just showing the start page.
Also, this same function bootstrap3_searchform() "looses" the current page, since it redirects to the start page of the wiki. Say you are viewing page "some:page", then search something, you get to page "start" and showing search results. Current DokuWiki with its default template would leave you on page "some:page" and show search results.
Steps to reproduce
Install fresh DokuWiki version greebo
Add bootstrap3 template, and activate it.
use the search tool
Expected behavior:
browser should send page:id?q=searched-text&do=search (or if not using nice URL doku.php?id=page:id&q=searched-text&do=search)
Actual behavior: [What actually happened]
browser sends start?id=searched-text&do=search
Versions
[Bootstrap3 Template] current
[DokuWiki] greebo
[Plugins] a lot...
[Browser] FF 62.0.3
Screenshots or Logs
The text was updated successfully, but these errors were encountered:
Description
Hi, this is a 2 in one issue.
bootstrap3_searchform() builds an outdated search URL. The URL currently built by bootstrap3 uses
id=searched-test&do=search
. Current DokuWiki needsq=searched-text&do=search
. DokuWiki itself detects this condition and sends a redirect, so most of the time, this goes unnoticed. There are conditions where this can lead to DokuWiki not searching anything, but just showing the start page.This has been discussed on DW forum, thread 16375 with andi @splitbrain.
Also, this same function
bootstrap3_searchform()
"looses" the current page, since it redirects to the start page of the wiki. Say you are viewing page "some:page", then search something, you get to page "start" and showing search results. Current DokuWiki with its default template would leave you on page "some:page" and show search results.Steps to reproduce
Expected behavior:
browser should send
page:id?q=searched-text&do=search
(or if not using nice URLdoku.php?id=page:id&q=searched-text&do=search
)Actual behavior: [What actually happened]
browser sends
start?id=searched-text&do=search
Versions
Screenshots or Logs
The text was updated successfully, but these errors were encountered: