-
Notifications
You must be signed in to change notification settings - Fork 27.5k
Routing and HTML5-mode links broken #2537
Comments
I saw your gist and thought I'd share with you how I you can set a base url for an app and then work with ./ to work from the base href and forward... |
@leon: Thank you for your suggestion! I took it to its logical extreme and set I updated https://gist.github.com/nil4/5444928 with this workaround and the latest Angular (v1.1.5-dc9a580). Removing the Since all URLs are root-relative, I think they should be interpreted as-is and setting the base href to |
Hugely helpful. I was getting infinite recursion without the base href being set. |
This should have been addressed in #2762 |
+1 |
This has since been resolved. |
Given an application hosted at
http://domain/en/test/
, using AngularJS v1.1.5-77ff108,$location.path()
does not include the/en/test
prefix, and as a result, no link matches the configured routes. Reproduced in Chrome 26, Firefox 20 and IE 10 running on two separate machines (Windows 7 and 8, respectively).See https://gist.github.com/nil4/5444928 for a complete example; you need to host these files under
http://domain/en/test/
to reproduce (domain
is a placeholder, you can use any host name). Expected: all links except the last one should show thepartial.html
view; actual: all links show thenotfound.html
view.This looks like a regression from v1.1.3 and v1.1.4 where this scenario works as expected. Originally reported at #2485 but probably unrelated.
The text was updated successfully, but these errors were encountered: