My main site is at localhost/site/ and my Flarum installation is at localhost/site/forum. I want to change app.routes.settings.path to route to my site's settings page (localhost/site/settings).
Is there a way to do this with just JavaScript, without digging into the HTML?
app.initializers.add('shinka-reroute', function() {
app.routes.settings.path = "http://localhost/site";
});