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

Redirect a user opening any link directly to the main page #11

Open
F1nnM opened this issue Oct 1, 2021 · 18 comments
Open

Redirect a user opening any link directly to the main page #11

F1nnM opened this issue Oct 1, 2021 · 18 comments
Assignees

Comments

@F1nnM
Copy link
Owner

F1nnM commented Oct 1, 2021

Opening for example https://rainbow-cards.mfinn.de/#/public_games directly, results in a blank page, as the app crashes. All the init is executed in the main page, so a user opening any other page should be redirected to the main page.

@alceil
Copy link

alceil commented Oct 1, 2021

Can i work on this issue?

@F1nnM
Copy link
Owner Author

F1nnM commented Oct 1, 2021

Sure!

@alceil
Copy link

alceil commented Oct 4, 2021

Thanks

@alceil
Copy link

alceil commented Oct 4, 2021

I'm having a problem setting up the project locally. Can you help me out a bit?

@alceil
Copy link

alceil commented Oct 4, 2021

@F1nnM

@F1nnM
Copy link
Owner Author

F1nnM commented Oct 4, 2021

Yep, whats the problem?

@alceil
Copy link

alceil commented Oct 4, 2021

image

@alceil
Copy link

alceil commented Oct 4, 2021

image
This is what i have to set as variables right?Or am I doing it wrong?

@F1nnM
Copy link
Owner Author

F1nnM commented Oct 4, 2021

Just leave the second variable empty.
REACT_APP_MASTER_BACKEND_USE_HTTPS=
It's used like a boolean. Empty = false, any truthy value = true

@alceil
Copy link

alceil commented Oct 4, 2021

Okay

@alceil
Copy link

alceil commented Oct 4, 2021

But still im getting the error though

@alceil
Copy link

alceil commented Oct 4, 2021

backend server is running but still @F1nnM

@F1nnM
Copy link
Owner Author

F1nnM commented Oct 4, 2021

You could try to replace 0.0.0.0 with either localhost or your local IP-address.

@alceil
Copy link

alceil commented Oct 4, 2021

ya now it works thanks

@F1nnM
Copy link
Owner Author

F1nnM commented Oct 4, 2021

Well, it's mostly about the public_games endpoint, as that one crashes.

@F1nnM
Copy link
Owner Author

F1nnM commented Oct 4, 2021

If the other endpoints work, than you don't need to redirect them

@alceil
Copy link

alceil commented Oct 4, 2021

Okay lemme do the required changes again

@alceil
Copy link

alceil commented Oct 4, 2021

I have done the required changes please have a look @F1nnM If still there are any changes needed. Just tell me I will do it.

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

No branches or pull requests

2 participants