Fix: remove index.html from generated url
This commit is contained in:
parent
9723099e91
commit
78b22042f0
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class ParseCachedWebMentions extends Command
|
|||
{
|
||||
$dir = mb_substr($filepath, mb_strlen(storage_path() . '/HTML/'));
|
||||
$url = str_replace(['http/', 'https/'], ['http://', 'https://'], $dir);
|
||||
if (mb_substr($url, -1) == 'index.html') {
|
||||
if (mb_substr($url, -10) == 'index.html') {
|
||||
$url = mb_substr($url, 0, mb_strlen($url) - 10);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue