010101 I'm wondering even if there's a way from the extend.php file, using JavaScript, to get the forum homepage URL? In regular JavaScript land I can do stuff like location.protocol + "//" + document.domain but stuff like that literally gets certain parts of the current URL. I just want, no matter where I am in the forum, to pull the forum's homepage URL. So that the code in my extend.php file will work if I install my forum at site.com or site.com/forum.
010101 010101 app.route looks interesting but I'm sure it's not made to be used in a hacky way I like want to...
JasperVriends You can use this to get the forum base URL: app.forum.attribute('baseUrl') If you run it in the console on discuss, it will return https://discuss.flarum.org, is that what you needed?