Fix wrong URL in links

This commit is contained in:
Toby Zerner 2016-04-08 13:44:46 +09:30
parent 4caec27ed9
commit d1863f1f64
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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