Comments (4)
The NoTrailingSlashAttribute
is used to tell the RedirectToCanonicalUrlAttribute
filter that the URL does not need a trailing slash. It does not help with the IUrlHelper
although it would be nice if it did. I'm not sure there is an extensibility point for me to add this feature, so for now I use .TrimEnd('/')
when using the IUrlHelper
with these particular URL's.
Perhaps you could raise an issue on the ASP.NET MVC GitHub project, explaining the reason why some URL's need trailing slashes removed and also linking to this issue. If not, I'll raise one when I get a chance.
I've fixed the above issue and will do a patch release. Let me know if you find any others. Thanks @dotnetshadow.
from templates.
Oh thank you for clearing that up it makes sense after you explained. I'll see if I can raise an issue but perhaps they will listen to you more hehehe
I think you need the same fix on manifest.json
<link rel="manifest" href="@Url.RouteUrl(HomeControllerRoute.GetManifestJson)">
Also as a side note I noticed with the browserconfig.xml stuff that the image won't show up when testing on localhost. I think there is a restriction on how metro apps can talk to localhost maybe worth mentioning in notes somewhere. Basically I tried to pin the website to my Windows 10 start menu it did pin but the image wouldn't show up if I was using localhost.
from templates.
Fixed. I have raised this issue on the ASP.NET MVC GitHub page.
from templates.
Excellent good work, hopefully they can have a fix for this well done
from templates.
Related Issues (20)
- Add Security HTTP Headers
- Disabling Docker Leaves Cake File with No Default Task HOT 1
- Improve Docker Image Security
- Investigate New Docker Settings for HTTPS Support
- .NET 7 Improvements
- Unable to access health checks with Orleans template. HOT 3
- Consider using dotnet-releaser HOT 5
- Add Lets Encrypt Feature
- Add Open Telemetry Metrics
- Include `xunit.analyzers` HOT 2
- Donet Cake DockerBuild does not fail the GH action step HOT 3
- Enable reproducible builds HOT 1
- Add Dev Tunnels to launchSettings.json
- .NET 8 Improvements HOT 1
- Two assets found targeting the same path HOT 2
- Reporting a weird error with .NET 7 and changing hostingContext.HostingEnvironment.ApplicationName
- Swagger does not respond with bad request and instead responds with 406
- .editorconfig syntax errors when using EnableGenerateDocumentationFile
- error xUnit1030: Test methods should not call ConfigureAwait(), as it may bypass parallelization limits.
- Microsoft.AspNetCore.ApplicationInsights.HostingStartup is depreciated.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templates.