nginx / nginx.org

Sources for the NGINX website and documentation
https://nginx.org
Other
48 stars 18 forks source link

CSS link using ../.. breaks formatting #63

Open fabriziofiorucci opened 3 weeks ago

fabriziofiorucci commented 3 weeks ago

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">