-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I have a blog post with title .../2019/08-02-oracle-deadlock-when-using-bitmap-index/. This URL was shortened to .../2019/08-02-oracle-deadlock-when-using-bitmap-/.
To get rid of this behaviour I changed two files:
core/src/Commands/BuildCommand.phpcore/src/Entries/Entry.php
I commented out below code.
For 1:
if (substr_compare($entry->slug(), 'index', -strlen('index')) === 0) {
$entryDir = preg_replace('/index$/', '', $entryDir);
}For 2:
if (substr_compare($this->slug(), 'index', -strlen('index')) === 0) {
$slug = preg_replace('/index$/', '', $slug);
}Currently I think that this code serves no other purpose then zapping this index-string at end of URL. But maybe there is another reason.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels