Skip to content

Commit 1c86e5d

Browse files
authored
Merge pull request #659 from montogeek/fix/624-Edit-button-index-pages
Fixes #624, append index to index URLs
2 parents 4cff782 + d961e87 commit 1c86e5d

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
@@ -9,7 +9,7 @@ import '../sidebar/sidebar-style';
99
import { trimEnd } from 'lodash';
1010

1111
export default ({ section, page }) => {
12-
let edit = page.edit || `https://github.com/webpack/webpack.js.org/edit/master/content/${trimEnd(page.url, '/')}.md`;
12+
let edit = page.edit || `https://github.com/webpack/webpack.js.org/edit/master/content/${trimEnd(page.url, '/')}${page.type === 'index' ? '/index' : ''}.md`;
1313

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

0 commit comments

Comments
 (0)