Giter Site home page Giter Site logo

Comments (4)

JeanMeche avatar JeanMeche commented on June 24, 2024

Hi,
I looks like the same as #27657

from angular-cli.

alan-agius4 avatar alan-agius4 commented on June 24, 2024

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.

nhnb avatar nhnb commented on June 24, 2024

Exactly those two reasons:

  1. Keeping existing URLs working

  2. 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.

alan-agius4 avatar alan-agius4 commented on June 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.