Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

155
Visualizações
Load data on a single page based on the url

I have a single html file that I have linked to Firestore that I want to load public data on based on the URL (not url params).

The url will be generated by the user from the slug parameter in my firestore:

Domain.com/bobs-store (slug = bobs-store)

Domain.com/sallys-boutique (slug = sallys-boutique)

Domain.com/davidsgarage (slug = davidsgarage)

Based on the url I want to load Firestore data (using the slug which I pull from the url). I’m stumped on how to make the different urls all end up on the same index.html page regardless of the url without individual redirects.

about 4 years ago · Santiago Gelvez
1 Respostas
Responde à pergunta

0

Where you are stuck (mapping multiple URLs to a single page) seems to have very little to do with Firestore, but mostly depends on the provider where you host your HTML pages.

If you're using Firebase Hosting, have a look at how to configure rewrites. For example, to map all URLs to the same index.html, that documentation shows this example:

"hosting": {
  // ...

  // Serves index.html for requests to files or directories that do not exist
  "rewrites": [ {
    "source": "**",
    "destination": "/index.html"
  } ]
}
about 4 years ago · Santiago Gelvez Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda