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

fix(ui): redirect error when landing on rankings page #321

Merged

Conversation

compiuta
Copy link
Contributor

@compiuta compiuta commented Apr 7, 2020

Closes #21

What does this PR do / solve?

Prevent redirect error and allow page to load for guest users
Screenshot from 2020-04-07 11-59-52

Overview of changes

I removed some conditions redirecting the user from
https://openwhyd.org/discover/ranking to https://openwhyd.org/discover/featured.

Since this redirect was causing the page to throw an error instead of actually loading the redirected page I would think it is best to just load the rankings page. Then the user can click on the featured tab to go the the featured page.

How to test this PR?

The page is now loading when a guest user goes to https://openwhyd.org/discover/ranking

@compiuta compiuta changed the title remove conditions causing a redirect error when landing on rankings page ui(fix): redirect error when landing on rankings page Apr 7, 2020
@compiuta compiuta changed the title ui(fix): redirect error when landing on rankings page fix(ui): redirect error when landing on rankings page Apr 7, 2020
@adrienjoly
Copy link
Member

adrienjoly commented Apr 10, 2020 via email

app/controllers/discover.js Outdated Show resolved Hide resolved
@compiuta
Copy link
Contributor Author

compiuta commented Apr 15, 2020

You are correct. I have now only removed the guest user redirect.

I initially thought that this redirect error was the bug posted on issue #21 but it seems that issue #21
is a completely separate issue related to the back end?

Copy link
Member

@adrienjoly adrienjoly left a comment

Choose a reason for hiding this comment

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

Perfect! Thank you!

@adrienjoly adrienjoly merged commit 8e6040e into openwhyd:master Apr 16, 2020
adrienjoly pushed a commit that referenced this pull request Apr 16, 2020
## [1.34.2](v1.34.1...v1.34.2) (2020-04-16)

### Bug Fixes

* **ui:** redirect error when landing on rankings page ([#321](#321)) ([8e6040e](8e6040e))
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.

UI: World Whyd Ranking page is slow to display data => user notice should be added
2 participants