-
Notifications
You must be signed in to change notification settings - Fork 754
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
dnn.js not included on the page when cookie consent is enabled #2695
Comments
This is in 9.3.2 as well. |
@Mitjan11 Do you know of another workaround? Because on of the sites is using SearchBoost, so, the skinobject has already been replaced... |
@Tychodewaard I think you proposed workaround should work, I have not tried it though, but we need to fix this bug and have thecookie consent feature request that file to be included for sure. |
I had the same issue and your workaround fixes the issue by placing that line in the skin's .ascx file and removing PathNameAlias="SkinPath". |
Can no longer reproduce in 9.6.2 and I remember there was a PR merged about this. |
I reopened the issue but I did not test this out, does it happen to you on a simple clean install just by enabling cookie consent or is there more steps to make it happen ? |
Yes, this is a clean DNN 9.9.0 with cookie consent enabled. |
Ok, thanks, I thought I had seen a PR to specifically fix this, guessed I dreamed about that. The issue is reopened. @donker does that ring a bell about being already fixed in a PR or am I just crazy? |
So it's resolved right ? |
Yes, in 9.10.1 |
Description of bug
The new cookie consent functionality released with DNN 9.3.1 depends on the window.dnn object being available which is created by dnn.js. However, when not using a skinobject that includes dnn.js on the page (or manually registering it), dnn.js is not included on the page and the cookie consent functionality breaks.
Relevant code:
Our current short-term (as in, critical fix) workaround involves including the search skinobject on the page in a hidden div. Less than ideal of course.
Steps to reproduce
List the steps to reproduce the behavior:
Current result
The cookie consent popup does not show.
Expected result
The cookie consent popup should show.
Screenshots
If applicable, provide screenshots to help explain your problem.
Error log
See above
Additional context
Add any other context about the bug that may be helpful for resolution.
Affected version
Affected browser
The text was updated successfully, but these errors were encountered: