EndzeitBegins commented on PR #8906:
URL: https://github.com/apache/nifi/pull/8906#issuecomment-2145237159

   As far as I remember Angular recommends to use "HTML5 style" routing for 
several years already, here's an exempt [from the 
documentation](https://angular.dev/guide/routing/common-router-tasks#choosing-a-routing-strategy):
   > Almost all Angular projects should use the default HTML5 style. It 
produces URLs that are easier for users to understand and it preserves the 
option to do server-side rendering.
   
   To my knowledge to get this to work properly, one has to set the `baseHref` 
accordingly when serving the `index.html` .
   This does not have to be done at build time, but can be achieved during 
runtime. 
   
   One idea is to use a placeholder as `baseHref` and replace it whenever the 
`index.html` is served. An example of this approach is available [on 
GitHub](https://github.com/mpalourdio/SpringBootAngularHTML5). There might be 
other approaches of course.
   
   I think we should evaluate whether it makes sense to look into this now 
instead of at a later point in time. 
   I think changing the approach later might prove to be more difficult as it 
basically invalides any hash-based links saved by users (or they have to be 
mapped, requiring a long-time workaround).
   
   Also this may avoid the need for a redirect regarding the mapping.
   
   Interested in your thoughts on this. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to