We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Created a brand new fubu web app using the spark view engine.
Set up my home route:
Routes.HomeIs<HomeRequest>();
In spark create a link to the home route
<a class="brand" href="${this.Urls.UrlFor(new WebApplication3.Home.HomeRequest())}">Test Brand</a>
Resulting Html is :
<a class="brand" href="">Test Brand</a>
The link here is empty. #sadtrombone
Wondering if this is related to issue #192
The text was updated successfully, but these errors were encountered:
My guess is that AspNetCurrentHttpRequest.ToFullUrl(string) should not be trimming the ending slash when that is the only part of the url remaining.
public string ToFullUrl(string url) { if (Uri.IsWellFormedUriString(url, UriKind.Absolute)) return url; if (url.IsEmpty()) { url = "~/"; } else { url = "~/" + url.TrimStart('/'); } var absoluteUrl = VirtualPathUtility.ToAbsolute(url); return (absoluteUrl != "/") ? absoluteUrl.TrimEnd('/') : absoluteUrl; }
Working on a pull request
Sorry, something went wrong.
Fix for Issue DarthFubuMVC#193 - don't trim a url's trailing slash if…
6c4a4da
… the url is only a slash ('/')
Merge pull request #194 from KevM/issue193
a9834d0
Fix for Issue #193 - don't trim a url's trailing slash if it is only a slash
No branches or pull requests
Created a brand new fubu web app using the spark view engine.
Set up my home route:
In spark create a link to the home route
Resulting Html is :
The link here is empty. #sadtrombone
Wondering if this is related to issue #192
The text was updated successfully, but these errors were encountered: