openlayers / openlayers/openlayers
Examples don't display correctly OOTB in a web browser
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 12.6k
- Forks
- 3.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 21
Description
Describe the bug
Most href missing '.'
It shows up in the first line but not the second line
link rel="stylesheet" type="text/css" href="./theme/ol.css"
link rel="stylesheet" type="text/css" href="/theme/site.css"
To Reproduce
Steps to reproduce the behavior:
- Go to 'https://github.com/openlayers/openlayers/releases/download/v9.2.4/v9.2.4-site.zip' to download and extract
- Open '...../Downloads/v9.2.4-site/en/latest/examples/attributions.html'
- See error Failed to load resource: net::ERR_FILE_NOT_FOUND /C:/theme/img/logo-dark.svg:1 (DevTools Console)
Expected behavior
Consistent code that works OOTB. Resolve by replacing all '"/' with '"./'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Extract the v9.2.4-site.zip release and open en/latest/examples/attributions.html in a browser, then inspect the generated example resources and their hrefs. Check the other example pages for the same path pattern; done means the downloaded site loads its styles and images correctly when opened directly from the filesystem.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100