Page title of AutoQuery generated page

Is there a way to set the title of a page that shows up in the browser tab for an autoquery generated page.

Currently, it always shows “ServiceStack.Admin.Web” in each chrome tab.

I have attempted to set the AutoQueryViewer attributes name and title but it stays the same.

It wasn’t configurable, but I’ve changed the default title to “AutoQuery”.

I’ve also added an InsertHtml feature you can use to insert custom HTML at the bottom of the page which you can use to change it to use your preferred title with something like:

Plugins.Add(new AdminFeature {
    InsertHtml = "<script>document.title='My App'</script>"
});

This change is available from the latest v5.9.1 that’s now available on MyGet.

1 Like