Bug - Wiki links to other pages are broken if a trailing / is left in the page URL

If you have a project wiki set up at github(dot)com/example/example/wiki - and you refer to other pages inside the wiki from the front page by using a [page link](page-link) - The URL it produces will be incorrect if a trailing slash is in the page URL ( github(dot)com/example/example/wiki/ )

It causes the final URL to be github(dot)com/example/example/wiki/wiki/page-link - the ‘wiki’ section being repeated twice.

Example on one of my repos: Home · CubeCoders/AMP Wiki · GitHub - any of the links on the home page that refer to other wiki pages break if you leave a trailing / at the end of the URL.