See Test Case. The search expression generated by ref-by seems to be incorrect in the case that a
WikiWord ends in a number.
Test case
- Create a page: TestPage1 with the text TestPage1
- Create a page: TestPage11 with the text TestPage11
- Visit TestPage1 and click "ref-by"
- Notice that TestPage11 shows in the list
- Visit TestPage11 and click "ref-by"
- Notice that TestPage11 is not in the list
Environment
| TWiki version: |
TWiki20030201 |
| TWiki plugins: |
|
| Server OS: |
RedHat Linux 8.0 |
| Web server: |
Apache 2.0.40 |
| Perl version: |
5.8.0 |
| Client OS: |
Windows 98 |
| Web Browser: |
Opera 7.11 |
--
WillBridewell - 15 Jul 2003
Follow up
This can be fixed by changing the file view.tmpl, adding a 0-9 to the end of the regular expression.
The Ref-By link should read
"%SCRIPTURLPATH%/search%SCRIPTSUFFIX%/%WEB%/SearchResult?scope=text®ex=on&search=%SPACEDTOPIC%%5B%5EA-Za-z0-9%5D"
Fix record
Fix is in Subversion now.
Other fixes (too busy to create new bug reports for fixes done):
- The search results now don't list the topic itself
- Search is going through all webs instead of the topic's own web
The new link in the view templates is now:
<a href="%<nop>SCRIPTURLPATH%/search%<nop>SCRIPTSUFFIX%/%<nop>WEB%/SearchResult?scope=text&regex=on&web=all&excludetopic=%<nop>TOPIC%&search=%<nop>SPACEDTOPIC%%5B%5EA-Za-z0-9%5D">
But now a new bug has come to light. The new bug's title is still this topic's title. See extended report below:
--
ArthurClemens - 30 Jul 2004
The spaced topic RegEx gives a lot of wrong results
Search results give back a load of results that are not related to the topic.
Test case
Follow up
The simple solution would be to remove the spaced topic search. But I think the search should look for actual urls, not the way these appear on the page.
--
ArthurClemens - 30 Jul 2004
We can't eaily get rid of spaced topic ref-bu search since a
[[foo bar]] link points to
FooBar.
Removing it from Cairo.
--
PeterThoeny - 08 Aug 2004