Comments (4)
Hi,
I looks like the same as #27657
from angular-cli.
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.
from angular-cli.
Exactly those two reasons:
-
Keeping existing URLs working
-
Communicating to users that this is a "stable" URL, that can safely be shared. Our users also work with Webflow based systems in which the URL consists of a flow key and will not work after logout / for other users. (We do have a "share"-button, but people like to copy URLs from the address-bar anyway.)
So yeah, we could rewrite URLs on the webserver to deal with 1). And we could try to educate users, that the URLs in our system are stable for 2).
I did not test this case: Would an URL like https://example.com/angularapp/share/My+Thesis+1.+Draft cause the same issue?
I realize that the issue only affects developers, so it's not a big deal.
from angular-cli.
I did not test this case: Would an URL like https://example.com/angularapp/share/My+Thesis+1.+Draft cause the same issue?
No, that would work. The issue with heroes-list.html
arises because the route contains a valid file extension, and hence the code path for static files is being triggered.
from angular-cli.
Related Issues (20)
- Incremental angular build with esbuild can't locate secondary entrypoints in 3rd party libraries HOT 3
- --ssr upon ng build does not create a server.mjs file HOT 1
- Support for server/api routes HOT 1
- prerender build failed to generate HOT 2
- JS support for PostCSS config HOT 1
- Erro ao executar "ng serve" na pasta do projeto HOT 4
- --open argument does not function on ng serve due to outdated 'open' package dependency for 'build-angular' on KDE Plasma 6
- Worker and global style files do not respect `sourceMap.hidden`
- After upgrade from Angular 17 to 18: Builder Updated Automatically From @angular-devkit/build-angular:browser to @angular-devkit/build-angular:application HOT 1
- `application` builder unable to resolve import HOT 3
- Vulnerability in inflight dependency in the dependency chain of @angular-devkit/build-angular HOT 2
- constructor.name now gives _aXX instead of component name HOT 1
- ng-deploy's browserTarget and prerender's browserTarget do not match. Please check your angular.json HOT 3
- ng build is broken: Could not resolve fs, net, os, crypto. But ng serve works (latest angular-cli). HOT 1
- bug(Ripple): error "Cannot set properties of undefined (setting 'FADING_IN')" HOT 4
- Add a coverage reporters option to ng test and angular json test options HOT 1
- Issues with independently using @ngtools/webpack to load loader.
- Migrating to ESBuild breaks SASS imports with "~" (tilde) HOT 1
- Running ng serve with different locale throws runtime error "$localize is not a function" when $localize is used in a library (v18.0.4) HOT 5
- SSR compiled code throws when loading whatwg-url package HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-cli.