I would like to add a global query parameter to each path of the application (something like /my/path?config=foo). I don't wanna use the perserve query params option as it preserves all query params and I only want to preserve this specific one.
My application does run with different configurations that can be chosen by the user who runs it. This choice is currently saved in the configuration service and is gone when closing or reloading the tab/window. I can't save the choice in the local storage or session as it is possible to have different configurations open in multiple tabs of the same browser (and as far as I know the local storage is global through all tabs of a browser - if it's not in incognito mode or similar).
But I want my users to have the option to copy the current url and send it to somebody else who get's the exact same data and configuration as the user who sent the link.
Therefore I would like to automatically attach a "config" query parameter to each url of the application as soon as the user chose a configuration setting.