[Plugins] OnRedirect hook don't work
Version
module: latest nuxt: 2.15.3
Nuxt configuration
mode:
- [x] universal
- [ ] spa
Nuxt configuration
Reproduction
:warning: without a minimal reproduction we won't be able to look into your issue
What is expected?
When auth plugin redirect to any url, the hook should be executed
What is actually happening?
auth.js plugin it's loaded, but OnRedirect method isn't called
Steps to reproduce
Put auth.js plugin on plugins folder and auth module settings with a OnRedirect hook with minimal console log output for example
Additional information
Checklist
- [x] I have tested with the latest Nuxt version and the issue still occurs
- [x] I have tested with the latest module version and the issue still occurs
- [x] I have searched the issue tracker and this issue hasn't been reported yet
In my local deployment, whenever I refresh the page or navigate through the address bar to a page in my SPA PWA, onRedirect is called. However, in my deployment environment, onRedirect isn't being called whenever I refresh or navigate using the address bar. Could this be due to my PWA being behind a reverse proxy?
(SPA, nuxt 2.15.17)
+1