microsoft / microsoft/vscode-livepreview

Live Preview does not resolve file when html extension is not provided.

Open
#611 0 comments 3 reactions 1 assignee View on GitHub

@andreamah is already working on this.

Since Mar 7, 2024.

feature-request
Dominant language
TypeScript
Stars
596
Forks
119
Avg merge
1d 4m
Merged PRs (30d)
5

Description

Currently when using Live Preview and navigating to a sub page 127.0.0.1/page the server does not resolve to 127.0.0.1/page.html, file not found error is shown.

On root domain this 127.0.0.1/ is correctly resolved to 127.0.0.1/index.html.

  • Question 1: Is this a bug on my side or is this the current behavior of Live Preview?
  • Question 2: If not, would it be possible to add an option for this? This would match the default behavior on most web servers (nginx, Apache) therefore reducing the difference between the test and live server.

using Live Preview v0.4.13 on Windows.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.