tinesoft / ngx-cookieconsent

Cookie :cookie: Consent module for Angular.
https://tinesoft.github.io/ngx-cookieconsent/
MIT License
164 stars 35 forks source link

[Bug] whitelistPage and blacklistPage options are not working well #131

Open ScorprocS opened 1 year ago

ScorprocS commented 1 year ago

Ngx-CookieConsent Version

4.0.1

CookieConsent Version

3.1.1

Angular CLI (or Nx CLI) Version

14.2.10

Node Version

18.12.1

OS Version

Windows & Debian

Expected Behaviour

When I put page url into whitelistPage or blacklistPage option it should either show on the only specified page or prevent from showing on the listed page but none of them worked.

Actual Behaviour

It does nothing

Steps to reproduce the behaviour

  1. configure the poject exactly like discribed https://www.npmjs.com/package/ngx-cookieconsent/v/4.0.1
  2. add whitlistPage or blacklistPage to cookieConfig:NgcCookieConsentConfig

cookieConfig:NgcCookieConsentConfig = {... whitelistPage: ['/','/explore'], ///I've tried pattern matcher also but it doesn't work too