Go to editor link in docs broken

The go to editor in docs links to localhost/docs/.html instead of localhost

there are many other broken links in docs aswell, but I’ve managed to fix most using .htaccess file. the only problem remaining is the one stated above.

how do I fix this?