mirror of
https://github.com/flarum/framework.git
synced 2025-01-31 15:58:47 +08:00
Fix wrong URL in links
This commit is contained in:
parent
4caec27ed9
commit
d1863f1f64
2
extensions/embed/js/forum/dist/extension.js
vendored
2
extensions/embed/js/forum/dist/extension.js
vendored
|
@ -136,7 +136,7 @@ System.register('flarum/embed/main', ['flarum/extend', 'flarum/app', 'flarum/com
|
|||
|
||||
override(m, 'route', function (original, root, arg1, arg2, vdom) {
|
||||
if (arguments.length === 1) {} else if (arguments.length === 4 && typeof arg1 === 'string') {} else if (root.addEventListener || root.attachEvent) {
|
||||
root.href = vdom.attrs.href;
|
||||
root.href = vdom.attrs.href.replace('/embed', '/d');
|
||||
root.target = '_blank';
|
||||
|
||||
// TODO: If href leads to a post within this discussion that we have
|
||||
|
|
|
@ -20,7 +20,7 @@ app.initializers.replace('boot', () => {
|
|||
} else if (arguments.length === 4 && typeof arg1 === 'string') {
|
||||
|
||||
} else if (root.addEventListener || root.attachEvent) {
|
||||
root.href = vdom.attrs.href;
|
||||
root.href = vdom.attrs.href.replace('/embed', '/d');
|
||||
root.target = '_blank';
|
||||
|
||||
// TODO: If href leads to a post within this discussion that we have
|
||||
|
|
Loading…
Reference in New Issue
Block a user