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

UI redirect flicker #15

Closed
ionescu-rares opened this issue Mar 19, 2024 · 2 comments
Closed

UI redirect flicker #15

ionescu-rares opened this issue Mar 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ionescu-rares
Copy link
Collaborator

ionescu-rares commented Mar 19, 2024

La load se face redirect catre "/home". Pe netlify uneori se poate sa flickere cu o pagina goala pe care scrie "Redirecting to...". Am incercat cateva fix-uri dar n-au mers decat local.

@ionescu-rares ionescu-rares added the bug Something isn't working label Mar 19, 2024
@andreipfeiffer
Copy link
Contributor

@ionescu-rares asta nu e bug, din ce vad redirect-ul ala este explicit definit:
https://github.com/tim-js/timjs.ro-v2/blob/main/astro.config.mjs#L10

Eu as sugera sa stergem acel redirect, sa eliminam route-ul /home, si continutul ala sa se afiseze direct pe index, adica pe route-ul /.

@ionescu-rares
Copy link
Collaborator Author

Initial am folosit redirect in config fiindca netlify-ul pune trailing slash la finalul url-ului si astro local nu. Atunci devenea hacky implementarea pentru ruta de home ca sa handle-uie active tab-ul si pentru netlify si local.

Am gasit o setare faina de astro config "trailingSlash: always" si atunci nu mai e problema asta fiindca o sa fie consistente rutele 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants