Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

153
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!