So let's say in my public folder in Firebase i have an index.html
and a salon.html
.
Now for a url like xyz.com/salon/43
I want to load salon.html
and in the javascript I want to fetch salon 43 from the realtime database.
Right now I'm able to have urls like xyz.com/salon?id=43
. I'm wondering if it is possible to do the former in Firebase hosting and if so how.
...you can have a URL like /blog/<id-for-blog-post>. This URL pattern can be pointed to a function that dynamically uses the URL blog post ID parameter to retrieve content dynamically from your Firebase Realtime Database.
– Philately