Skip to content

Commit f49798c

Browse files
authored
Fixing the 'Edit this page' link
discussed here: #561
1 parent 10002d5 commit f49798c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/page/page.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import './page-style';
88
import '../sidebar/sidebar-style';
99

1010
export default ({ section, page }) => {
11-
let edit = `https://github.com/webpack/webpack.js.org/edit/develop/content/${page.url}.md`;
11+
let edit = `https://github.com/webpack/webpack.js.org/edit/develop/content/${trimEnd(page.url, '/')}.md`;
1212

1313
return (
1414
<Container className="page">

0 commit comments

Comments
 (0)