webpack.js.org icon indicating copy to clipboard operation
webpack.js.org copied to clipboard

Navigation links are invalid

Open Munter opened this issue 7 years ago • 0 comments

All navigation links from https://github.com/webpack/webpack.js.org/blob/master/src/components/Navigation/Links.json get a / prepended in https://github.com/webpack/webpack.js.org/blob/master/src/components/Navigation/Navigation.jsx#L33 and https://github.com/webpack/webpack.js.org/blob/master/src/components/Navigation/Navigation.jsx#L87

Since some Urls in the json are protocol relative links (eg. //medium.com/webpack), the resulting href in the anchors have three slashes in the beginning. This is not a valid url.

image

Munter avatar Apr 11 '18 08:04 Munter