Skip to content

Conversation

clydin
Copy link
Member

@clydin clydin commented Sep 19, 2024

If a HTTP request is made to the development server that explicitly requests an HTML file (i.e., /abc.html), the development server will now attempt to fallback to the root index.html file if the requested HTML file does not exist. Since this may indicate a defect or other application misconfiguration such as a missing asset, a warning will also be issued in the console during development to notify the developer that something may be wrong.

…ndex

If a HTTP request is made to the development server that explicitly requests
an HTML file (i.e., `/abc.html`), the development server will now attempt to
fallback to the root `index.html` file if the requested HTML file does not exist.
Since this may indicate a defect or other application misconfiguration such as a
missing asset, a warning will also be issued in the console during development to
notify the developer that something may be wrong.
@clydin clydin marked this pull request as ready for review September 19, 2024 16:11
@clydin clydin added the target: patch This PR is targeted for the next patch release label Sep 19, 2024
@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Sep 19, 2024
@clydin clydin merged commit 13a3e43 into angular:main Sep 19, 2024
34 checks passed
@clydin
Copy link
Member Author

clydin commented Sep 19, 2024

The changes were merged into the following branches: main, 18.2.x

@clydin clydin deleted the devserver/html-asset-fallback branch September 19, 2024 16:47
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: @angular/build target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow .html in URL in angular 18 like 'product/:slug.html' in when using @angular-devkit/build-angular:dev-server

2 participants