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

ensure oneSignalSDKWorker.js resolves when using nested routes #157

Closed
wants to merge 1 commit into from

Conversation

scottbartell
Copy link

It appears that oneSignalSDKWorker.js does not properly resolve when using nested routes.

I attempted to write a test for this but couldn't figure out a good way to test it -- If we think it's valuable I'd be more than happy to write one/some if someone can provide me with some guidance.

Here's an example of the problem:
image

It's also actively occurring on my website if it helps to see it live: https://pushoflove.com/feed/63b77785-806b-41b9-9e7a-c8813d79a1bf

@pi0
Copy link
Member

pi0 commented Mar 5, 2019

Hi Scott. Thanks for your PR and nice to see Push of Love using Nuxt and PWA modules!

The root cause was that we need to always prepend routerBase (Which is / by default) to the swURL. I've made a direct commit for the fix. Thanks for report and contribution.

@pi0 pi0 closed this Mar 5, 2019
pi0 pushed a commit that referenced this pull request Mar 5, 2019
@nuxt-community nuxt-community deleted a comment from codecov bot Mar 5, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants