简体   繁体   中英

Why clicking on sidebar links takes to raw content page on github wiki?

I have created a github Wiki page Introduction.md and sidebar file _Sidebar.md in the same directory in a private repo. When I click on sidebar link I'm redirected to raw page, although the link shows appropriate url.

page Introduction.md has below content

# Introduction <a name="heading--1">

This is a web application.

And the _Sidebar.md has below content:

# Table of contents

**[1. Introduction](Introduction.md#heading--1)**

On hovering the link on sidebar it shows correct url as:
https://github.com/testorg/ecom/wiki/Introduction.md#heading--1

But on clicking the link it redirects to raw page and shows the raw content for Introduction.md above
https://raw.githubusercontent.com/wiki/testorg/ecom/Introduction.md?token=GHSAT0AAAAAATESTINGTOKENAZG2ZMAQ33POCYYHFSBQ#heading--1

Why this type of behavior, What I'm missing here?

Almost there, however, is one small issue in your URL. Instead of

**[1. Introduction](Introduction.md#heading--1)**

Remove.md from the URL.

**[1. Introduction](Introduction#heading--1)**

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM