Skip to content

Web page title from config doesn't appear until responsive webapp component updates #155

Open
@landonreed

Description

@landonreed

When loading the OTP web app in a browser, there is a moment where the original page title is visible before it is overridden in responsive webapp:

componentDidUpdate (prevProps) {
const { currentPosition, location, query, title } = this.props
document.title = title

This was observed in the 511NY trip planner using the trimet-mod-otp library (see https://dz88fe1xr6gid.cloudfront.net/#/, where page title flashes a non-NY title before changing).

It appears that we need to update the page title in the constructor method as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions