-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Squash does not remove trailing slash in ui-sref #2299
Comments
Here is a reproduction - this appears to be a bug. |
+1 @nateabele this was flagged as a bug on October 2015, it doesn't seem like a very complicated thing to fix. Any chance someone could have a look at it? |
You could always file a PR :) |
This seems to be related to (or the same as) #1902 which appears to have been fixed already in August last year, the changelog says version 0.2.16 (2016-01-24). However, it's not functioning anymore as it should in 0.3.0. @wesleycho I've taken a look at the source code, and it seems this test is wrong as it has a trailing slash in the I've looked at the code in the Is there anyone on the team with a couple of minutes to spare to have a look into this? It seems the issue has been addressed once before, so that would be a good starting point. |
This issue has been automatically marked as stale because it has not had This does not mean that the issue is invalid. Valid issues Thank you for your contributions. |
If I define a state as below:
I expect this to match the URL path
/products/watches
, which it does (no trailing slash).However, if I do the below methods, I get the URLs with the trailing slashes:
I get the below compiled tag:
(The slash is not squashed)
Is this an expected behavior? And if so, is there a way to retrieve the squashed version via
ui-sref
?The text was updated successfully, but these errors were encountered: