View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000550 | WackoWiki | action | public | 2019-11-09 07:14 | 2019-11-09 08:34 |
Reporter | administrator | Assigned To | administrator | ||
Priority | normal | Severity | minor | Reproducibility | sometimes |
Status | resolved | Resolution | fixed | ||
Product Version | 5.5.0 | ||||
Target Version | 5.5.16 | Fixed in Version | 5.5.16 | ||
Summary | 0000550: added missing link path normalization | ||||
Description | Both action use the LIKE statement but {{search}} fails with a starting slash (/). AND (a.tag LIKE 'Doc/Russian/%' ...) HERE is WHY: In the search action it does not normalize the tag which is done in the unwrap_link() function. $page -> unwrap_link() -> $tag It checks for relative and absolute link and resolves them to the correct tag. For relative links it uses the $this->tag and for included pages the $this->context[] array to determine the correct tag. The tag starts always without a slash, like it is stored in the tag field in the database. I suggest we use in the action the $page parameter and after normalization the $tag parameter and NOT $for, $root and others, so it is consistent. | ||||
Steps To Reproduce | {{search page="Sub/Page"}} // missing link path normalization {{tree page="/Sub/Page"}} | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2019-11-09 07:14 | administrator | New Issue | |
2019-11-09 07:14 | administrator | Status | new => assigned |
2019-11-09 07:14 | administrator | Assigned To | => administrator |
2019-11-09 07:14 | administrator | Status | assigned => resolved |
2019-11-09 07:14 | administrator | Resolution | open => fixed |
2019-11-09 07:14 | administrator | Fixed in Version | => 5.5.16 |
2019-11-09 07:14 | administrator | Note Added: 0001076 | |
2019-11-09 08:34 | administrator | Description Updated |