Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve search to create new pages with odd name #2380

Closed
wants to merge 1 commit into from

Conversation

msjang
Copy link

@msjang msjang commented May 10, 2018

If search query contains white space and upper case letters, createQueryPageLink is created with unwanted pagename.

search query: Doku Wiki:Hello World
new pagename with this fix: doku_wiki:hello_world
new pagename without this: doku_wiki_hello_world (namespace not applied)

search query: Doku Wiki:Hello World
new pagename with this fix: doku_wiki:hello_world
new pagename without this: doku_wiki_hello_world (namespace not applied)
Copy link
Collaborator

@micgro42 micgro42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is necessary, but assuming that it is, please:

  1. See the failing test and fix your code so that it no longer fails
  2. Write a test that specifically checks for your own change
  3. do 1. and 2. in way that thoroughly considers the question of "For which arguments should your change not affect the result of this method?" Especially considering the rarer search syntax options: https://www.dokuwiki.org/search

@phy25
Copy link
Collaborator

phy25 commented Feb 27, 2020

I will go ahead to close this, but if you still have interest to polish the patch with the suggestions, you can open a new PR.

@phy25 phy25 closed this Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants