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

added a route page not found #1323

Merged
merged 1 commit into from
Jun 21, 2022
Merged

added a route page not found #1323

merged 1 commit into from
Jun 21, 2022

Conversation

varsha766
Copy link
Collaborator

No description provided.

@varsha766 varsha766 linked an issue Jun 15, 2022 that may be closed by this pull request
@netlify
Copy link

netlify bot commented Jun 15, 2022

Deploy Preview for solawind ready!

Name Link
🔨 Latest commit af26472
🔍 Latest deploy log https://app.netlify.com/sites/solawind/deploys/62a97202d30c6a00090feee0
😎 Deploy Preview https://deploy-preview-1323--solawind.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Vishwas1 Vishwas1 merged commit 766d137 into develop Jun 21, 2022
document.title = to.meta.title;
if(to.matched.length < 1){
next(false);
router.push('/404');
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just add this condition on top of that method. no need for else ...

if(to.matched.length < 1){
    document.title = to.meta.title;
    next(false);
    return router.push('/404');
  }
  }

``

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.

Create a Fallback page 404
2 participants