Closed moritz31 closed 4 years ago
This depends on your use-case. With static site rendering, your site is rendered as any user that visits it for the first time would see it. If that includes a modal, that is what will get rendered. If your angular app decides on a cookie to remove the modal, that will only happen after your angular app is started. In cases like this, you might want to add a small amount of JS that handles this stuff outside of angular, and before its tarts.
I've found a way by just setting a user agent for puppeteer and then just filter the modal out if this user agents access the site
Closing as it seems solved, and we currently don't see anything actionable in here. If there is something we can do, we will reopen this.
🐞 Bug report
Description
On my page i have a gdpr consent modal, that displays and disable all site actions. When scully serves the static site, the modal is shown, after the angular app is loaded the modal goes away.
Not sure if this is a bug or a feature request or just an advice on how to workaround that issue.
🔬 Minimal Reproduction
Create a simple page with modal in front, which hides when a cookie is set. Accept the cookie and then reload the site.
💻Your Environment
Angular Version:
Scully Version:
🔥 Exception or Error