I am new to this so please show some mercy. I am trying hard.
I have a deployed Firebase website. User type: domain.com/1
it will open the file index.html in a folder named 1. Works great.
Now I would like to share with my friend a different content from DB for the same page.
This content has an ID and it's 456`.
In Firebase database I have a row matched this ID with the content.
I want to share with my friend domain.com/1 + the ID 456 on a URL, so when he loaded the page he will get content matched 456. (taken from DB)
- How should this URL path look to include folder 1, and id 456 ? is there only one way?
- How the architecture will look like? user load this page's
html( no content) with this parameter 456,JSon client side go back to Firebase to get content and load into the page? (I have done this, which works (using functions) but very slow.) - Can the user ask something like
domain.com/1?456and redirect to a function onFirebasethat will already fetch the data (456) and return a page *with the data included *? (one call to the server) if so HOW?
How it's done ? 2 or 3?