nginx / nginx/nginx.org

CSS link using ../.. breaks formatting

Open
#63 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
XSLT
Stars
89
Forks
60
Avg merge
19h 11m
Merged PRs (30d)
12

Description

Using DuckDuckGo looking for "nginx directives list" (https://duckduckgo.com/?q=nginx+directives+list&ia=web) the first link is:

https://nginx.org/en/docs//dirindex.html

which has a double slash. This doesn't render correctly as the css stylesheet HREF uses a ../.. prefix:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Alphabetical index of directives</title><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="stylesheet" href="../../css/style_en.css"></head><body><div id="banner"><div id="banner-content">

It would probably make sense to change:

<link rel="stylesheet" href="../../css/style_en.css">

into

<link rel="stylesheet" href="/css/style_en.css">

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the repository sources for the stylesheet link shown in the issue and inspect how the nginx.org documentation index pages are generated. Verify the affected double-slash URL after the change and confirm that it loads the stylesheet from /css/style_en.css without breaking other documentation pages.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html
Domain
documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.