feat: improve search as a primary means to create new pages
commit42690e4d38f9519f308f64893283e7d5ad3616f4
authorMichael Große <grosse@cosmocode.de>
Fri, 27 Apr 2018 08:46:19 +0000 (27 10:46 +0200)
committerMichael Große <grosse@cosmocode.de>
Fri, 27 Apr 2018 08:46:19 +0000 (27 10:46 +0200)
treeadb17ca92ddaed1f65d613016c3fc6d03a317303
parent7a2061bbef825da718a53e75297f57f53b2341a3
feat: improve search as a primary means to create new pages

Specifically, this pull request checks if the current query is already a
valid pageid and then return that as suggested pageid.

Also, tests are added for this method.

Fixes #2355

PS: We may want to somehow better educate/nudge users to use the better
way of creating pages by creating links on existing pages.
_test/tests/inc/Ui/Search_createPagenameFromQuery.test.php [new file with mode: 0644]
inc/Ui/Search.php