What is the easiest way to redirect to another page in an SPFX React app?
My App is fairly simple with only 2 pages each with a web part. I want to redirect from the home page to another page with a parameter that is used by the receiving page as a filter in a REST request.
I am trying to do it using location.href and putting the parameter in the query string, but I get an error 'The service worker navigation preload request was cancelled before 'preloadResponse' settled'
The service worker file 'spserviceworker.js' is coming from a cdn so I don't think it is possible to make changes to it to deal with the issue. I've tried adding another service worker file to the app without success.
I suppose I could look into using the React Router but it seems like a lot of trouble to go to for somthing that should be fairly simple.