Please open an issue on our github tracker, I am not sure if we should just remove the saving to user settings in the sort dropdown all together and move the sort settings to /user/<slug>/settings like everything else. Then you can change the sort order in every topic without effecting your settings. The setting used in the user page would be the default sort when you enter a topic.
Load clientside script depending on route
-
I'm working on a public plugin for integrating the ExclServer game management system into NodeBB.
The plugin has a number of different custom pages, e.g.: rules, servers, chat.How would I load a different clientside javascript script depending on what route the user is requesting?
For example, if the user requests URI /exclserver-rules I want to load a different script than when the user requests URI /exclserver-chat. Just putting the scripts in the 'scripts' array of my plugin.json file doesn't do what I want it to, because that will load all scripts on any of the custom routes. -
See: https://github.com/kurt-stolle/nodebb-plugin-exclserver/blob/master/templates/exclserver/servers.tpl
Why does the <script> tag sometimes not load after rendering the page?