Subject: search & multitemplate: unwanted results
Hi, I'm doing some initial tests with multitemplate (thanks, tjgrant!), and found an unwanted behavior.
This is my test config:
I visit the start page (monobook template), and I use the search box in both possible ways, using foobar as search term; the query portion of the URL and the resulting page are as follows:
Search: ?do=search&id=foobar&fulltext=Search (shows a results page with link to foobar:start)
Go: ?id=foobar (shows the "This topic does not exist yet" page)
So far so good. But... since both include the parameter id=foobar in the URL, the displayed pages use the doogiestpl template, even though I have not visited the foobar namespace yet.
Edit: same problem using as search term id=foobarwhatever, since function mt_beginsWith(), in meat.php, considers this a match. It seems that the matching criteria should be more conservative...
This is my test config:
$multitemplate['playground:playground'] = 'default';
$multitemplate['foobar'] = 'doogiestpl';
$multitemplate[''] = 'monobook';
$multitemplate['foobar'] = 'doogiestpl';
$multitemplate[''] = 'monobook';
I visit the start page (monobook template), and I use the search box in both possible ways, using foobar as search term; the query portion of the URL and the resulting page are as follows:
Search: ?do=search&id=foobar&fulltext=Search (shows a results page with link to foobar:start)
Go: ?id=foobar (shows the "This topic does not exist yet" page)
So far so good. But... since both include the parameter id=foobar in the URL, the displayed pages use the doogiestpl template, even though I have not visited the foobar namespace yet.
Edit: same problem using as search term id=foobarwhatever, since function mt_beginsWith(), in meat.php, considers this a match. It seems that the matching criteria should be more conservative...
efege
Show profile
Link to this post