Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome Notification Center URL goes to the homepage #262

Open
jasontestinsight opened this issue Aug 15, 2020 · 1 comment
Open

Chrome Notification Center URL goes to the homepage #262

jasontestinsight opened this issue Aug 15, 2020 · 1 comment

Comments

@jasontestinsight
Copy link

jasontestinsight commented Aug 15, 2020

Windows 10 Pro - 1903 - 18362.720
Chrome Version 84.0.4147.125 (Official Build) (64-bit)

The behavior with PushJs seems to vary. I've noticed 2 variances.
An example of how this is set up is :
assuming link = www.example.com/asd/dsa

var config = {
            body: text,
            icon: "/img/notification.png",
            link: link,
            tag: text
        };

        if (link) {
            config.onClick = function () {
                window.open(link);
                this.close();
            };
        }

  1. A notification pop-up on the right side of the screen. If I click on this pop-up, it opens to the correct/full URL.

1b) Issue is here If I leave it alone for 4 seconds, it calls onclose() by itself and it closes this pop up, BUT it adds itself to the Windows Notification Center. Clicking the notification here goes to the homepage of the URL, in this case, www.example.com, and drops everything after the /. How can I fix this ?

  1. If I trigger the same message multiple times, it goes directly to the Windows Notification Center. Clicking on this notification now goes to the correct/full url.

A temporary workaround seems to be setting requireInteraction = true, so the pop up doesn't hide itself, but closing the tab that generated the notification, then clicking on the notification would open a new tab and goes to the homepage instead of the full url.

@exzizt
Copy link

exzizt commented Apr 21, 2022

@jasontestinsight @Nickersoft
I am experiencing the exact same issue. Did you ever find a way to resolve it?

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

No branches or pull requests

2 participants