-
I have created a simple custom page to activate users after clicking on a token link from Nodejs server. The problem is when I test the page by manually entering the url into the browser, it works perfectly but when I click on the token link in gmail, it gives 404 page not found. I dont know what the problem is. can someone help me.. I used the same approach in a normal react app and it works perfectly so it looks like the problem is with my refine.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @van-vince, sorry for the issue! Do you have the Or you might want to check your deployment configuration to see if it's properly adjusted to mount React and your app when a custom url is hit. By default some deployment platforms handle this automatically when you're trying to deploy your React app with client side navigation/rendering but some are not. You might want to check the guides about your deployment setup 🙏 Let me know if I can help any further 🚀 |
Beta Was this translation helpful? Give feedback.
-
So I finally found the and on stackoverflow https://stackoverflow.com/questions/36923466/dot-and-hyphen-disallowed-react-router-url-parameters
If you are using Vite then this plugin will solve the issue: Install it as a dev dependency Add the plugin to your vite.conf.js file
|
Beta Was this translation helpful? Give feedback.
So I finally found the and on stackoverflow https://stackoverflow.com/questions/36923466/dot-and-hyphen-disallowed-react-router-url-parameters
add to webpack config
If you are using Vite then this plugin will solve the issue:
Install it as a dev dependency
npm install --save-dev vite-plugin-rewrite-all
Add the plugin to your vite.conf.js file
import pluginRewriteAll from 'vite-plugin-rewrite-all'; // <= import the plugin