-
Notifications
You must be signed in to change notification settings - Fork 38
Use the service link as the start of the path to the favicon images #391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
hey @johnsgp thanks for this. We merge a fix for rack into main. You'll need to rebase your branch with main and hopefully test will pass. |
4a083db
to
8c2cfea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested with docs locally and it appears to work as expected.
Thanks for the contribution
This bumps the tech docs gem to v4.3.0 which brings in [v5.9.0 of GOVUK Frontend](alphagov/tech-docs-gem#390). This also includes the following changes from the gem: - [Fix: Update Rack::File to Rack::Files in test specs](alphagov/tech-docs-gem#394) - [Fix: Use the service link as the start of the path to the favicon images](alphagov/tech-docs-gem#391) - [Allow non-GOV.UK favicon and opengraph assets](alphagov/tech-docs-gem#387) The last change, sets favicon and opengraph images to be sourced from `source/images` so adds defaults for any GOV.UK tech docs. This also bumps all the dependencies to the latest version within their semver range. Check the Gemfile.lock for a full list of these bumps.
- Revert [Fix: Use the service link as the start of the path to the favicon images](#391)
- [Bump govuk-frontend to v5.9.0 and pin middleman to v4.5.1](alphagov#390) - [Fix: Update Rack::File to Rack::Files in test specs](alphagov#394) - [Fix: Use the service link as the start of the path to the favicon images](alphagov#391) by @johnsgp
- Revert [Fix: Use the service link as the start of the path to the favicon images](alphagov#391)
What’s changed
The location of the favicons in the page
<head>
has been changed to include theservice_link
from the tech-docs.yml configuration file.Identifying a user need
The favicon links added to the core template in v4.0.0 does not work for sites that have a service link. As an example, see the Self Assessment End-to-End Service Guide which has its source in GitHub. There is no favicon on the browser tab because the links look like
<link rel="icon" sizes="48x48" href="/assets/govuk/assets/images/favicon.ico">
which resolves to https://developer.service.hmrc.gov.uk/assets/govuk/assets/images/favicon.ico which does not exist. The icon is located at https://developer.service.hmrc.gov.uk/guides/self-assessment-end-to-end-service-guide/assets/govuk/assets/images/favicon.ico. The service_link configuration matches what is missing from the link.
This was raised as an issue by a service guide author. There are 2 dozen or more service guides and roadmaps that either already are or will be affected when updated.