mirror of
https://github.com/flarum/core.git
synced 2025-07-29 20:50:28 +02:00
Fix wrong URL in links
This commit is contained in:
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
|
||||
|
Reference in New Issue
Block a user