Skip to content
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

fix(meta): add missing router.base prefix to favicon #354

Merged
merged 2 commits into from
Oct 1, 2020

Conversation

DraftProducts
Copy link
Contributor

The favicon must be accessible from any page and it does not matter how deep the page is. The only possible solution is to use a relative url.

The favicon must be accessible from any page and it does not matter how deep the page is. The only possible solution is to use a relative url.
@codecov
Copy link

codecov bot commented Sep 22, 2020

Codecov Report

Merging #354 into master will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #354   +/-   ##
=======================================
  Coverage   85.43%   85.43%           
=======================================
  Files          10       10           
  Lines         357      357           
  Branches      108      108           
=======================================
  Hits          305      305           
  Misses         48       48           
  Partials        4        4           
Impacted Files Coverage Δ
lib/meta/module.js 81.90% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc87c28...ae53b78. Read the comment docs.

@@ -111,7 +111,7 @@ function generateMeta (pwa) {
if (options.favicon && !find(this.options.head.link, 'rel', 'shortcut icon') && existsSync(favicon)) {
console.warn('You are using a low quality icon, use icon png. See https://pwa.nuxtjs.org/icon/')

this.options.head.link.push({ rel: 'shortcut icon', href: 'favicon.ico' })
this.options.head.link.push({ rel: 'shortcut icon', href: '/favicon.ico' })
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to prepend router.base

@pi0 pi0 changed the title Relative path missing for the favicon fix(meta): avoid using favicon with relative path Oct 1, 2020
@pi0 pi0 changed the title fix(meta): avoid using favicon with relative path fix(meta): add missing router.base prefix to favicon Oct 1, 2020
@pi0 pi0 merged commit 3e910ae into nuxt-community:master Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants