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

Handling 404 page not found #5227

Merged

Conversation

Ankit-Keshari-Vituity
Copy link
Contributor

Below are points fixed in this PR.

  • User should be redirected to the Homepage after login instead of the logout route.
  • Used a wildcard placeholder to handle 404 page not found.
  • Redesign the page not found component.

page_not_found

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions
Copy link

github-actions bot commented Jun 22, 2022

Unit Test Results (build & test)

389 tests  +10   389 ✔️ +10   10m 21s ⏱️ + 1m 44s
  92 suites +  2       0 💤 ±  0 
  92 files   +  2       0 ±  0 

Results for commit 1ba1ea8. ± Comparison against base commit baf3f3f.

♻️ This comment has been updated with latest results.

<MainContainer>
<PageNotFoundContainer>
<PageNotFoundTextContainer>
<Title>Oops! Page not found</Title>
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can remove this Title

<Number>4</Number>
</NumberContainer>
</PageNotFoundTextContainer>
<SubTitle>we are sorry, but the page you requested was not found</SubTitle>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's say "The page you requested was not found"

</NumberContainer>
</PageNotFoundTextContainer>
<SubTitle>we are sorry, but the page you requested was not found</SubTitle>
<Button onClick={goToHomepage}>Go To Homepage</Button>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's say "Back to Home"

Copy link
Collaborator

@jjoyce0510 jjoyce0510 left a comment

Choose a reason for hiding this comment

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

Make a few minor changes to the 404 screen.

Waiting on CI to pass, then will ship!

@jjoyce0510 jjoyce0510 merged commit 907d5cd into datahub-project:master Jun 22, 2022
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.

2 participants