Skip to content

Edit button in docs broken after r96 #15136

@moraxy

Description

@moraxy
Description of the problem

#14846 stripped the localization from the [path] placeholder to get the links to the source files working again but the edit button in the top right needed that to point to the localized docs file.

three.js/docs/page.js

Lines 102 to 106 in 12450be

button.addEventListener( 'click', function ( event ) {
window.open( 'https://github.com/mrdoob/three.js/blob/dev/docs/' + section + '/' + path + '.html' );
}, false );

First noticed in #14750 (comment) as far as I can tell. A previous hotfix(hiding the button) was applied in 0c58464, but got removed with the release of r96.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions