Skip to content

Commit 1731b87

Browse files
committed
Shorten display of the URL
1 parent 90523f6 commit 1731b87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wcfsetup/install/files/lib/data/page/Page.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public function getTitle(): string
211211
*/
212212
public function getDisplayLink()
213213
{
214-
return \preg_replace('~^https?://~', '', $this->getLink());
214+
return \str_replace(WCF::getPath(), '', $this->getLink());
215215
}
216216

217217
/**

0 commit comments

Comments
 (0)