Should I use HashLocationStrategy with Angular?
Jump to turn (6)
- 1Should I use HashLocationStrategy with Angular?
- 2How can I Make HashLocationStrategy work with Identity Server?
- 3IdentityServer and Angular are in the same application.
- 4The HashLocationStrategy doesn't seem to work with Identity Server Accountmanage
- 5In every case I'm still being redirected to the home page.
- 6It seems that Identity sever doesn't accept the hash.
- User
Should I use HashLocationStrategy with Angular?
- Assistant
The decision to use
HashLocationStrategywith Angular depends on your specific use case.By default, Angular uses
PathLocationStrategy, which uses the HTML5 history API to manipulate the browser's URL without triggering a full page reload. However, in some cases, you may want to useHashLocationStrategyinstead.One reason to use
HashLocationStrategyis if you need to support older browsers that do not support the HTML5 history API. uses the URL fragment identifier (the portion of the URL after the symbol) to track navigation, which is supported by all browsers.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.