Skip to content

Set HTML page title. #39

@domdfcoding

Description

@domdfcoding

Currently the tab title in Firefox is shown as localhost:8000, and when the tab is open the window is just titled "Mozilla Firefox". Contrast with this page which says New Issue — Mozilla Firefox. I'd like to be able to set the page title, so it says for instance My App Name — Mozilla Firefox, through the <title> element.

I see there is an option to Server for title, but that only changed what showed while the app is loading in the webpage - it didn't affect what the browser shows. I can't see a <title> element if I view the page using the browser's dev tools.

This would make it easier to identify which tab corresponds to the Textual app. I assume I could accomplish this with custom templates but I think it's common enough that it should be built in - especially as the title option already exists from which the title can be taken.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions