I am working on a node app.
i have an ejs file , where on clicking a button a get request is made to this url localhost:3000/posts/business-economics
but the page doesn't load up and this error is shown in the console
Failed to launch 'localhost:3000/posts/business-economics' because the scheme does not have a registered handler.
I encountered the same error while working with the localhost. I was trying to redirect to localhost:3000 and I got this error flashing on my console. It turns out that it's because the http:// is missing from the url you're trying to load. I'm amazed to see that no one has answered this yet.
you must set address protocol before url ,like:
returnUrl = window.location.protocol + "//" + window.location.host + Path
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With