Preview not working with remove trailing slash
See original GitHub issuePreview not working when removing trailing slashes via web.config:
<rule name="Remove trailing slash" stopProcessing="true">
<match url="(.*)/$"/>
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
</conditions>
<action type="Redirect" redirectType="Permanent" url="{R:1}"/>
</rule>
PR incoming
Issue Analytics
- State:
- Created 4 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
apache - Remove trailing slashes
The solution to this subtle problem is to let the server add the trailing slash automatically. To do this correctly we have to...
Read more >How to remove trailing slash in Umbraco 8
It is really easy to disable this behaviour and remove the trailing slash from the URLs. Simply edit your umbracoSettings.config file which can ......
Read more >How to use a trailing slash in URLs correctly
To do this, you can create a new filter with a clear name such as “Removing Trailing Slash.” Select “Custom,” then “Advanced.” In...
Read more >Remove trailing slash
I need to remove any trailing slashes off any url that come in. www.mydomain.com/category/ - -> www.mydomain.com/category.
Read more >301 Redirects using trailing slashes not working - General
We currently have an issue with trailing slashes not redirecting (convention is to not include the trailing slash anyways). If you remove the ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jveer Disclaimer: I haven’t tested the PR, I just wanted to add some context to it.
If it works it’s all good 👍 but it’s not up to me to decide if it should be merged or not, that’s up to @nul800sebastiaan and the PR team.
For future reference, here’s how one could do a rewrite rule that doesn’t affect the backoffice:
Additional note, if this is going to get traction in the future: this also needs testing with Umbraco being installed in a virtual directory, not sure if that affects anything in the related PR, but it is something that would need to be added to the test matrix.