Nuxt.js: Cannot find 'flavicon.ico' in '/some/emebedded/route/'

Created on 13 Feb 2017  路  6Comments  路  Source: nuxt/nuxt.js

I noticed that when having nested routes, assets are searched for in the same route in static, such as the flavicon.

Is there something I'm missing or is this a bug?

This question is available on Nuxt.js community (#c215)
question

Most helpful comment

It should work by adding a slash before favicon.ico in your nuxt.config.js.
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }

All 6 comments

That's weird because our website have nested route and the favicon works without any issue.
Can you share us some screenshot or code example please?

Here is the dev tools console log with the attached images. It only happens when it detects a new route, such as a new card id in the dynamic route.

capture
capture2
capture3

It should work by adding a slash before favicon.ico in your nuxt.config.js.
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }

It seems to not want to request the flavicon at all after those changes.

@mattdharmon you might also want to include router.base in your nuxt.config.js file:

...
router: {
  base: '/'
}
...

Reference : https://github.com/nuxt/nuxt.js/issues/239

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uptownhr picture uptownhr  路  3Comments

danieloprado picture danieloprado  路  3Comments

nassimbenkirane picture nassimbenkirane  路  3Comments

vadimsg picture vadimsg  路  3Comments

vadimsg picture vadimsg  路  3Comments