So, I have links from an Excel spreadsheet into a dnn site (4.9.3). The links contain extra query string variables for a custom module, but the custom module doens't do any url rewriting and this issue can be reproduced on a page with just a Text/HTML module, or even no module. This also happens whether Friendly URLs are turned on or off as well.
The issue is, if the page is protected by a security role for viewing (registered users, for example), the initial click of the link from the spreadsheet will cause DNN to display the login page, along with the url redirect (the original url, with query string variables in tact) and once logged in, will redirect to the appropriate page with the original url in tact (all query string variables) and as expected.
However, any subsequent clicks on any links in the spreadsheet, which open a new tab (ie 7), will have any additional query string variables stripped from the url. The original user is still logged in because the tab recognizes the earlier session and login, but the URL is no longer in tact. On the other hand, if the target page has view permissions for All Users, the query string variables stay in tact for all requests. These scenarios are easily recreated by setting up two separate pages, one with view perms for registered users and one with view for all users. Then, open Excel and create links to each page and add some random query string variables.
The problem this causes is that you cannot view protect a page and access it from a non-DNN link without logging in everytime, or actually, logging out, then logging back in every time. Any insight as to why this is happening and how it may be address would be greatly appreciated!