Skip to content
Product and web UIguide

How to trace icon paths after moving a stylesheet

By SkeuDesign Editorial Team1 min read

Answer in brief

Resolve relative CSS URLs against the stylesheet's URL. Moving the stylesheet can change the resolved image path even when the page's URL is unchanged.

Trace a missing background badge

A stylesheet at /theme/base.css references url(icons/badge.png), which resolves to /theme/icons/badge.png. After bundling moves the CSS, inspect the requested absolute URL. Adjust the asset import or public path to reflect the deployed layout.

Distinguish stylesheet and document contexts

Move a URL declaration from a linked stylesheet into an inline style and its base URL can change. On a nested route, inspect the final request from both versions. A path that worked when the stylesheet lived beside its images can start resolving beneath the page's route.

Sources

  1. [1] url() CSS function - CSS — MDN Web Docs, accessed November 23, 2026

Frequently asked questions

Why does pasting the image URL still work?

A direct visit proves the file exists at that URL. Compare it with the URL the stylesheet actually requested.