Skip to content

Web app manifest relative URL logic #13

@kevinkelleher12

Description

@kevinkelleher12

First of all, thank you for creating RealFaviconGenerator!

I was trying to debug why npx realfavicon check is failing for me which led me here:

  } else {
    // Otherwise, append the path to the existing pathname
    return `${url.href}${url.href.endsWith('/') ? '' : '/'}${absoluteOrRelativePath}`;
  }

Is this correct? From the MDN docs:

If src is relative, the path is resolved relative to the manifest file's URL. For example, the relative URL images/icon-192x192.png for the manifest file located at https://example.com/manifest.json will be resolved as https://example.com/images/icon-192x192.png.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions