-
Notifications
You must be signed in to change notification settings - Fork 12k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ng serve fails to load app if url parameter contains a dot (.) #27657
Comments
|
17.1.1 works |
Is this the problem? 3deb0d4a1 fix return 404 for assets that are not found 17.1.2 (2024-01-31)@angular-devkit/build-angular
|
Why do you include file extensions in your SPA routes? Including file extensions in routes is often due to legacy systems or a desire for clarity. However, this practice isn't ideal for SPAs as modern best practices favor clean, extensionless URLs. They enhance user experience, aid SEO, and ensure consistency across routes. |
I’m creating a chrome extension which only accepts html files. I have two
pages and need two html files. I choose use routing in one project and copy
final index file to two names, welcome.html and options.html.
Please let me know if there is better way to do this in one project.
…On Tue, May 21, 2024 at 7:13 AM Alan Agius ***@***.***> wrote:
Why do you include file extensions in your SPA routes? Including file
extensions in routes is often due to legacy systems or a desire for
clarity. However, this practice isn't ideal for SPAs as modern best
practices favor clean, extensionless URLs. They enhance user experience,
aid SEO, and ensure consistency across routes.
—
Reply to this email directly, view it on GitHub
<#27657 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6T7ANXDNWSKTE2LHYWBVU3ZDNJBVAVCNFSM6AAAAABH5EOLQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRSG4ZTMNBTGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Why do you need two HTML files? The Chrome Extension can be a SPA where routing is managed by the Angular router. |
Because I have a welcome page and options page.
Thanks for your reminder, I just enabled withHashLocation configuration and
now am using one html file.
Previously without hash routing, I couldn't open the welcome page and
options page in one html file.
…On Wed, May 22, 2024 at 2:50 AM Alan Agius ***@***.***> wrote:
Why do you need two HTML files? The Chrome Extension can be a SPA where
routing is managed by the Angular router.
—
Reply to this email directly, view it on GitHub
<#27657 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A6T7ANWZ4CQZWL3SNCTZFI3ZDRS4XAVCNFSM6AAAAABH5EOLQ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRUGM2DQNZRGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Command
serve
Is this a regression?
The previous version in which this bug was not present was
No response
Description
same to this issue #26320
Now the Vite 5 is already out but this problem is still here.
Minimal Reproduction
ng new test
cd test
ng generate component test
change app.routes.ts
visit http://localhost:4200/welcome.html and got
Cannot GET /options.html
Exception or Error
No response
Your Environment
Anything else relevant?
No response
The text was updated successfully, but these errors were encountered: