leoncvlt / loconotion

📄 Python tool to turn Notion.so pages into lightweight, customizable static websites
840 stars 132 forks source link

Fix: Pretty url /*.html → / #106

Closed lowapple closed 2 years ago

lowapple commented 2 years ago

Problem

I have deployed my site via Netlify. However, the .html extension was attached to the URL and displayed to the user. Enabling the PrettyURL option inside Netlify has the same problem.

Update

Fix: Pretty url /*.html → /

http://localhost:8080/ASDF.html to http://localhost:8080/ASDF

Fixed the problem that netlify's pretty url was not applied

Related issues

Pretty URLs instead of Ugly URLs https://github.com/leoncvlt/loconotion/issues/10

2m commented 2 years ago

This is already possible with the extension_in_links configuration variable. Docs are being updated with this PR: https://github.com/leoncvlt/loconotion/pull/103/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R109