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

Render pages NOT in routes export #34

Open
colin-byrne-1 opened this issue Sep 16, 2019 · 3 comments
Open

Render pages NOT in routes export #34

colin-byrne-1 opened this issue Sep 16, 2019 · 3 comments
Assignees
Labels

Comments

@colin-byrne-1
Copy link

colin-byrne-1 commented Sep 16, 2019

Hey I am using dashboard 2.0 and would like to render a 404 page.

I would NOT like the 404 page to show up in the sidebar. I would like to render it with the AdminLayout, and redirect to the 404 page whenever another route is not found.

The below code is not working, but I think it shows my intentions.

    <Switch>
        <Route exact path="/" component={HomeView} />
        <Route path="/auth" render={props => <AuthLayout {...props} />} />
        <Route path="/admin" render={props => <AdminLayout {...props} />} />
        <Route path="/404" render={props => <AdminLayout component=NotFoundPage {...props} />} />
        <Redirect to="/404" />
    </Switch>
);

Thanks for any help, the dashboard has been great.

@colin-byrne-1
Copy link
Author

bump...

@colin-byrne-1
Copy link
Author

@dragosct10 any help here?

@einazare
Copy link

einazare commented Oct 8, 2019

Hello there, @cobyrne09 ,

Thank you for your interest in working with our products.
It may seem that you have opened a Github issue on a wrong repository, since this repository is an HTML & CSS/SCSS & jQuery one, while the code you have attached is a React code.
We will need first to solve the first issue, is this an HTML or a React issue, so please answer the bellow question/questions:

  1. Please give us the link to the product that you use (it would be best to give us the creative-tim link).
  2. Please tell us how did you end up on this repository.

There might be additional questions to the above ones after we get your response.

Best,
Manu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants