@@ -210,6 +210,10 @@ facilitate the browser URL change and history management.
210210## Hashbang mode (default mode)
211211
212212In this mode, `$location` uses Hashbang URLs in all browsers.
213+ Angular also does not intercept and rewrite links in this mode. I.e. links work
214+ as expected and also perform full page reloads when other parts of the url
215+ than the hash fragment was changed.
216+
213217
214218### Example
215219
@@ -249,6 +253,10 @@ having to worry about whether the browser displaying your app supports the histo
249253- Opening a regular URL in a legacy browser -> redirects to a hashbang URL
250254- Opening hashbang URL in a modern browser -> rewrites to a regular URL
251255
256+ Note that in this mode, Angular intercepts all links and updates the url in a way
257+ that never performs a full page reload (see "Html link rewriting" below).
258+
259+
252260### Example
253261
254262```js
@@ -297,7 +305,7 @@ history API or not; the `$location` service makes this transparent to you.
297305
298306### Html link rewriting
299307
300- When you use HTML5 history API mode, you will need different links in different browsers, but all you
308+ When you use HTML5 history API mode, you will not need different links in different browsers, but all you
301309have to do is specify regular URL links, such as: `<a href="/some?foo=bar">link</a>`
302310
303311When a user clicks on this link,
@@ -313,17 +321,9 @@ reload to the original link.
313321 Example: `<a href="/ext/link?a=b" target="_self">link</a>`
314322- Absolute links that go to a different domain<br>
315323 Example: `<a href="http://angularjs.org/">link</a>`
316- - Links starting with '/' that lead to a different base path when base is defined <br>
324+ - Links starting with '/' that lead to a different base path<br>
317325 Example: `<a href="/not-my-base/link">link</a>`
318326
319- When running Angular in the root of a domain, along side perhaps a normal application in the same
320- directory, the "otherwise" route handler will try to handle all the URLs, including ones that map
321- to static files.
322-
323- To prevent this, you can set your base href for the app to `<base href=".">` and then prefix links
324- to URLs that should be handled with `.`. Now, links to locations, which are not to be routed by Angular,
325- are not prefixed with `.` and will not be intercepted by the `otherwise` rule in your `$routeProvider`.
326-
327327
328328### Relative links
329329
0 commit comments