Only /my links aren’t ok from those three. However, there seems to be a deliberate whitelist. I note that paths added by plugins are also not included (i.e. with the Custom Wizard Plugin/w)
You can muck about with this on Meta - it behaves exactly the same as for personal links.
Thanks a lot for confirming that. The /my/* links are a fairly important limitation for what I would need. I’m currently use a variation on this code to add custom links to the sidebar:
The above custom code is still a bit janky (custom links disappear if the browser is resized from narrow to wide again), so I’d prefer to use the official Discourse solution. But I wonder if maybe I could use that code as a stopgap to add the /my/* links to the official Discourse custom menu?
Dear team — you are (hopefully) allowing /my urls at some point. I would like to request one thing more: /safe-mode
It would help use of DiscourseHub a little bit when things goes sideways because there is close to impossible change url. And if I and we can do an admin section where is quicklink to safe mode among other shotcuts it would be… nice. Sure — there is always an option to use browser, but it needs more clicks
Has this been implemented fully yet? I can create a global section, but it is only visible to group members with modify permissions defined in enable_custom_sidebar_sections, and not as read only section for all users (‘Make this section public and visible to everyone’ is checked on the custom section).
You are right, both user custom sections and global custom sections are available only for users in groups specified in enable_custom_sidebar_sections site setting. There are no separate settings for global and user custom sections. You can enable the feature for everyone by adding all trust_level groups.
Sorry, there was a bug on touch screen devices like mobile phones and tablets. It should be fixed, could you please give it another try?
Yes, /my links are treated as external because full-reload is required for them. Therefore, new tab behavior can be controlled in Discourse Meta - The Official Support Forum for Discourse with Open all external links in a new tab setting.
After changing your setting, probably you will need to reload the page.
Ah, interesting, thanks for the explanation. Although I do want actual external links to be opened in a new tab by default for all users, so that’s less than ideal.
I wonder if there’s a way to add some kind of a placeholder like $USER or something and then make Javascript resolve it to the active user’s /u/username ?
Right, but most users prefer external links to be opened in a new tab. The reload issue with the /my/* links sounds a bit tricky to deal with, but maybe in the future something could be done with JS and a placeholder variable for the custom menu so that we can link to /u/username/* directly in custom menus.
Do they? Not to be snarky, but… Is there research on this?
Personaly, I find it annoying when a site senda links to a new tab. If I want a new tab, browsers have easy ways to do that — but generally no easy way to say “same tab, ignore the sites”.
And absent strong objective evidence, I have to assume my personal preferences are universal, right?