Skip to content
This repository has been archived by the owner on Feb 8, 2023. It is now read-only.

custom uploaded JavaScript is included/executed only after first login #9

Open
ovidiugabriel opened this issue Apr 1, 2020 · 1 comment
Assignees

Comments

@ovidiugabriel
Copy link

Platform: Prestashop 1.7
Operating System: Windows 10 Pro
Browser: Opera GX LVL1 (core: 67.0.3575.105)

Steps to reproduce

  1. add a simple test.js file with console.log('test.js') in the content box plugin
  2. open a new incognito window and visit the prestashop online store
  3. observe the console logs, you can see there is not "test.js" in the logs
  4. login as a user to the website
  5. observe that 'test.js' is printed at page refresh
  6. logout and refresh the page
  7. observe that 'test.js' is still printed at page refresh even if we are not logged in anymore.

Expected result

The script shall be included/executed at step 3 (when a new visitor enters the website)

Actual result

The script is not executed if the visitor does not login at least once. Unable to execute scripts for guest visitors.

@BrunoBernardino
Copy link

Thanks for reporting this @ovidiugabriel ! @migcosta should be able to give you an answer on wether this is something we're looking to fix or not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants