Support » Plugin: Push Notifications for WP & AMP » Cookie path

  • Resolved czokalapik

    (@czokalapik)


    Hello, is it possible to set cookie path to ‘/’ when agreeing to notifications?
    When user clicks “OK” on a random page, prompt will still appear on other pages.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Magazine3

    (@magazine3)

    Yes. it is possible, Can you send your website URL?

    Thread Starter czokalapik

    (@czokalapik)

    Not really because it’s for logged-in users only (company intranet), and I know where to change it in the js script in the plugin itself, but it’ll be overwritten with a new version (or I can unregister and register a modified js file).

    Maybe my question should sound more like this: are you planning on adding a filter or definition of some kind for modifying the cookie path?

    Plugin Author Magazine3

    (@magazine3)

    we create a GitHub ticket to add a filter in js to overwrite the cookie path and we will share it once it is done. for now, you can change it on your end.

    You can track the development of this filter on:
    https://github.com/ahmedkaludi/pwa-for-wp/issues/602

    Plugin Author Magazine3

    (@magazine3)

    We added a filter to change the path of the cookies in our latest update. Can you please check it once by updating the plugin and let us know back?

    Thread Starter czokalapik

    (@czokalapik)

    Works flawlessly, thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.