The link should open a privacy setting panel provided by Truendo CMP, which is a legal requirement in the EU and some other parts of the world. The settings panel does open when pasted to the browser URL field manually.
Truendo is now live at Tappara.co, but I need to implement the link to be compliant with the GDPR legistlation and the terms of Google Adsense, which is used to finance the site.
Yeah, parsing URLs may sound like a good idea, but then it can cause issues like this and rarely adds actual value.
Regarding Truendo CMP, I had to disable it as the free version does not work with Google Adsense. AdSense requires TCF, which is not a part of the free plan. For someone not using advertising, but still needing a CMP for analytics etc., it feels like a decent 3rd party solution.
@ljpp we are looking at this, but I just wanted to double check something in the meantime. If you put a link to https://example.com/latest?truendo_open=cookie_settings in a post on your forum and click it, does Truendo detect it correctly and open the preferences?
I suspect the answer is no, because navigations within Discourse are not full page reloads, and I doubt truendo listens to ‘soft navigations’ within a PWA. But I’d love to be wrong on this!
If it doesn’t work, then I think you’d need to use some kind of Javascript API from Truendo to pop the preferences open, instead of relying on the magic link.
This commit should allow arbitrary query parameters to be included in sidebar links:
There are still a couple of quirks which are more general than the sidebar:
As discussed above, if the query parameter is intended to trigger something in a third-party JS library, they will need to have support for Single Page Apps (SPAs)
Ember (our JS framework) currently strips any unrecognized query parameters immediately after navigation. So, even though the sidebar link includes the query param, it may disappear as soon as you navigate.
We are keeping an eye on potential future solutions to this in the Ember framework
In the meantime, one workaround for both those problems would be to make the link to some external site, which then redirects back to your forum. (e.g. a URL shortening service)