javascript - Github Pages don't like relative links -


i have relative links in development.md , links on same site.

for example:

* [scripts](#scripts) ##scripts here commes lot of text 

after pushing github, links works. pushed site github pages , links don't work anymore.

on github see path in browser https://github.com/name/project/blob/master/docs/development.md#scripts

on github pages see path in browser http://ux.example.com/#scripts

how can solve problem? don't use jekyll.

i got answer github. react app, , not github pages, i'm not sure how able support it. however, looks whatever router you're using configure page may getting confused. because router using # character believe it's trying change page, no page #scripts exists. finally, looks scripts section missing id="scripts" required make anchor links work.

i found solution

the solution simple * [scripts](#scripts)   ##scripts <a id="scripts"></a> here commes lot of text 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -