Skip to content

Header link hardcoded to staging site #251

Description

@mjmaisey

Describe the bug

The header link of the dashboard takes you to the staging site home (https://coronavirus-staging.data.gov.uk/), not the public site home. This could mean members of the public, press etc. are at random exposed to bugs in unreleased code versions, depending on their navigation path.

To Reproduce

  1. Open https://coronavirus.data.gov.uk/
  2. Click on the black banner at the top
  3. Note the URL is now that of the staging site.

Expected behaviour

The URL should remain https://coronavirus.data.gov.uk/

Screenshots

N/A

Desktop (please complete the following information):

Not OS/browser dependent.

Additional context

The problem was introduced in July and is on line 14 of:
https://github.com/publichealthengland/coronavirus-dashboard/blob/v2-development/src/components/Header/Header.js

which hardcodes an environment-specific URL.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions