Solution: Vercel index deployedfrom github but links didn't work

I spent a lot of time figuring out why the site was deployed apparently well but the links didn’t work. The problem was that, unlike Github, Vercel needs you to append “.html” on every link. Since I spent a couple of hours trying to figure it out with Google and ChatGTP, I thought it might be helpful to share it.

Another option might be to build with Jekyll’s global permalink: pretty option. The effect is that all generated HTML files get their own directory with index.html file. Virtually all web servers allow the elision of the index file for directories.

Source Default URL Pretty URL
/about.md /about.html /about/
1 Like