mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 05:43:16 +08:00
Fix incorrect post permalinks
This commit is contained in:
parent
cad85335a6
commit
b21374e520
|
@ -32,7 +32,7 @@ app.initializers.replace('boot', () => {
|
|||
|
||||
// Trim the /embed prefix off of post permalinks
|
||||
override(PostMeta.prototype, 'getPermalink', (original, post) => {
|
||||
return original(post).replace('/embed', '');
|
||||
return original(post).replace('/embed', '/d');
|
||||
});
|
||||
|
||||
app.pane = new Pane(document.getElementById('app'));
|
||||
|
|
Loading…
Reference in New Issue
Block a user