anitab-org / anitab-org/stem-diverse-tv-cms

Bug: 404 Page Not Found on refreshing a page on gh-pages

Aberta
#48 16 comentários 0 reações 1 responsável Reivindicada por @Aryamanz29 Ver no GitHub
Category: Outreach/Research Type: Bug
Linguagem predominante
TypeScript
Estrelas
4
Forks
23
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

### Describe the bug

We get a `404 Page Not Found` error when refreshing a page. Actually, this happens because github pages doesn't supports single page apps. It doesn't have access to front-end routes.

### To Reproduce
Steps to reproduce the behavior:
1. Go to https://anitab-org.github.io/stem-diverse-tv-cms/login
2. Refresh the page
4. See error

### Expected behavior

We should not get a 404 error and should be redirected to the same page.
A solution I saw was to add a 404.html file to add under the public folder which redirects back to index.html. Although not sure if it will work for us or not.

##### Feel free to `research` on this find the best possible solution.

### Screenshots

![stem-404](https://user-images.githubusercontent.com/54268438/111920159-83cd9700-8ab3-11eb-9470-bc1659669798.gif)

### Desktop (please complete the following information):
- OS: Any
- Browser: Any
- Version: Any

### Additional context

For reference, you can see the implementation [here](https://github.com/milosrancic/reactjs-website).

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.