Skip to content
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.

Standardize the behavior of ~ (without slash) paths #3045

Closed
pranavkm opened this issue Aug 26, 2015 · 4 comments
Closed

Standardize the behavior of ~ (without slash) paths #3045

pranavkm opened this issue Aug 26, 2015 · 4 comments
Labels

Comments

@pranavkm
Copy link
Contributor

Seems like a general problem: Url.Content resolves ~Text.css as /Text.css.
However this doesn't work with url resolution in Views: e.g.
<link href="~Text.css" /> gets printed as is. This also seems to be the behavior in Mvc 5

There are other places in the application (for instance view resolution) where we specifically look for ~/ rather than just ~.

@danroth27
Copy link
Member

Sounds like a minor issue with Url.Content. Using ~/ is the supported pattern

@pranavkm
Copy link
Contributor Author

Using ~ is also the supported pattern per #2896 - it just doesn't work everywhere.

@Eilon
Copy link
Member

Eilon commented Aug 27, 2015

Can we just special case "~" as being "app path"? Doing "~foo" seems esoteric and odd... and wrong...

@pranavkm
Copy link
Contributor Author

Can we just special case "~" as being "app path"

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants