Is it possible to alter the URL that appears in extension pages?

In the extension I’m working on, the user can open the same extension page in multiple tabs but each tab will be populated with different data from the database. I can alter the tab title and the document to inform the user in some manner to what each tab refers, but can the web address be used also?

For example, extension name/collection name/extension page name/data set name.

Thank you.

You can use query search parameters:
moz-extension://bdf368b4-8e8f-465a-9ac5-5517a6d89311/some_page.html?user=Jon&content=about


Or hash parameter:
moz-extension://bdf368b4-8e8f-465a-9ac5-5517a6d89311/some_page.html#some_string_here

In both cases it will load same “some_page.html” but you can alter content based on hash / query parameters.

Note that by default you can update “hash” without reloading page, but changing query string will reload the page.

Thank you. I will give these a try.