-
Notifications
You must be signed in to change notification settings - Fork 745
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cookie uses dnn_IsMobile with term "dnn" #4044
Comments
Folks do have configurations and documentation making use of that name, so just changing the name would be a breaking change for some people. Making the name configurable would not be a breaking change, and it much more likely to get accepted. Hope it helps! |
I am not into adding work potentially to any folks workloads. I would like to create the solution as you described which was my first go to fix, but thought maybe the simple fix would be good to go... Looking into a web.config solution as proposed here would it be something like adding the following:
Should the Settings be in Then in FriendlyUrlController.cs file edit to select these keys. ( DNN Platform/Library/Entities/Urls/FriendlyUrlController.cs line 34 about ) After adding
I got this far with VS not yelling at me except to make the first letter lowercase in the I know this isnt 100% correct I am just putting down some ideas here... bare with me sorry :( If so how do I go about making sure the new app setting is added to everyones web configs? Am I heading in the right direction here? Thanks again for the support assisting me with this issue! |
One thing you should probably do is default to the old value, and then you don't need to add it to existing private readonly string MobileViewSiteCookieName = ConfigurationManager.AppSettings[name: "MobileViewSiteCookieName"] ?? "dnn_IsMobile";
private readonly string DisableMobileViewCookieName = ConfigurationManager.AppSettings[name: "DisableMobileViewSiteCookieName"] ?? "dnn_NoMobile"; You can also see |
I will try to have this done up today, I was hoping to work on the PR last night... |
Description of bug
Not really a bug but a preference, I would like to see less references to the platform as possible and I believe changing the cookie used for
dnn_IsMobile
could be changed to something else less revealingSteps to reproduce
List the precise steps to reproduce the bug:
dnn_IsMobile
Current behavior
cookie uses
dnn_IsMobile
Expected behavior
something more generic that is less revealing used instead of terms like "dnn" in cookie.
Screenshots
If applicable, provide screenshots to help explain the bug.
Additional context
I will create a PR using
app_IsMobile
for a more generic cookie nameAffected version
Affected browser
The text was updated successfully, but these errors were encountered: