Describe the bug
In DSpace 9.3, turning off the Orejime cookie dialog in config does correctly not show the cookie dialog but results in this browser console error message:
Orejime config error:
- you must define `apps` to manage 4691.5f2889b84616eed0.js:1:82859
Ie http://localhost:4000/4691.5f2889b84616eed0.js:1
initialize http://localhost:4000/main.b16bd57a6a3e109c.js:1
invoke http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
onInvoke http://localhost:4000/main.b16bd57a6a3e109c.js:1
invoke http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
run http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
J http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
invokeTask http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
onInvokeTask http://localhost:4000/main.b16bd57a6a3e109c.js:1
invokeTask http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
runTask http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
cr http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
invokeTask http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
Lt http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
_t http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
nr http://localhost:4000/polyfills.eb857a8d2c0a4e05.js:1
We explicitly set apps to an empty array in browser-orejime.service.ts if the popup is disabled:
|
if (!environment.info?.enableCookieConsentPopup) { |
|
this.orejimeConfig.apps = []; |
So perhaps it is possible to disable Orejime more thoroughly, or, we might - as a workaround - have to add a fake app here 😬?
To Reproduce
Steps to reproduce the behavior:
- Turn off the cookie dialog in
config.yml by setting
info:
# Whether to show the cookie consent popup and the cookie settings footer link or not.
enableCookieConsentPopup: false
- Open the homepage or any other page in a browser
- Check the console for the above Orejime error message
Expected behavior
When turning off the cookie dialog, there should not be any error messages
Describe the bug
In DSpace 9.3, turning off the Orejime cookie dialog in config does correctly not show the cookie dialog but results in this browser console error message:
We explicitly set
appsto an empty array inbrowser-orejime.service.tsif the popup is disabled:dspace-angular/src/app/shared/cookies/browser-orejime.service.ts
Lines 194 to 195 in 1116ead
So perhaps it is possible to disable Orejime more thoroughly, or, we might - as a workaround - have to add a fake app here 😬?
To Reproduce
Steps to reproduce the behavior:
config.ymlby settingExpected behavior
When turning off the cookie dialog, there should not be any error messages