The version is 11.4.2
I set up a URL rewire for the site to remove the trailing slash.
It works, however, the image generator stopped working on the front end.
Urls like image.png?width=300 shows the original image.
Not sure what took place here.
Code in the startup.cs
app.UseHttpsRedirection();
var rewriteOptions = new RewriteOptions().AddIISUrlRewrite(env.ContentRootFileProvider, "IISUrlRewrite.xml");
app.UseRewriter(rewriteOptions);
// This line is needed for the rewrites to take effect.
app.UseStaticFiles();
app.UseUmbraco()
.WithMiddleware(u =>
{
u.UseBackOffice();
u.UseWebsite();
})
.WithEndpoints(u =>
{
u.UseInstallerEndpoints();
u.UseBackOfficeEndpoints();
u.UseWebsiteEndpoints();
});
URL Rewirte Kills image cropper?
The version is 11.4.2 I set up a URL rewire for the site to remove the trailing slash. It works, however, the image generator stopped working on the front end. Urls like image.png?width=300 shows the original image.
Not sure what took place here.
Code in the startup.cs
Content in IISUrlRewrite.xml
Thanks
is working on a reply...