Minor, make side nav filter view get trailing slashes correct regardless of input.
This commit is contained in:
@@ -193,7 +193,7 @@ final class AphrontSideNavFilterView extends AphrontView {
|
|||||||
|
|
||||||
if (empty($item['uri'])) {
|
if (empty($item['uri'])) {
|
||||||
$href = clone $this->baseURI;
|
$href = clone $this->baseURI;
|
||||||
$href->setPath($href->getPath().$key.'/');
|
$href->setPath(rtrim($href->getPath().$key, '/').'/');
|
||||||
$href = (string)$href;
|
$href = (string)$href;
|
||||||
} else {
|
} else {
|
||||||
if (empty($item['relative'])) {
|
if (empty($item['relative'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user