You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's by design. Since most static hosts hide the .html extension to allow static sites to present nice extensionless URLs, that's the default for Wyam generation and the preview server.
You can change this behavior with a setting. Add this to your config.wyam file:
Settings[Keys.LinkHideExtensions] = false;
Keep in mind if you also want to use the preview server with extensions you'll need to pass --force-ext on the command line to prevent extensionless URLs from being valid (thus replicating a server like IIS).
To reproduce:
wyam.exe new --recipe Blog
wyam.exe --recipe Blog --theme CleanBlog
Run in IIS Express
Open site in browser
First Post link is "http://localhost:62812/posts/first-post"
Should be "http://localhost:62812/posts/first-post.html"
The text was updated successfully, but these errors were encountered: