mirror of
https://github.com/flarum/framework.git
synced 2025-05-01 09:04:04 +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
|
// Trim the /embed prefix off of post permalinks
|
||||||
override(PostMeta.prototype, 'getPermalink', (original, post) => {
|
override(PostMeta.prototype, 'getPermalink', (original, post) => {
|
||||||
return original(post).replace('/embed', '');
|
return original(post).replace('/embed', '/d');
|
||||||
});
|
});
|
||||||
|
|
||||||
app.pane = new Pane(document.getElementById('app'));
|
app.pane = new Pane(document.getElementById('app'));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user