U4-9701 - Redirects Don't Work with Trailing Slash

Created by Nicholas Westby 30 Mar 2017, 03:34:25 Updated by Nicholas Westby 30 Mar 2017, 03:42:44

I used UI-O-Matic to insert records into the umbracoRedirectUrl table (since Umbraco doesn't natively allow you to create redirects), and that seems to work fine for the most part.

The problem I'm encountering is that the redirects don't work if the old URL ends with a trailing slash (e.g., "some-old-page/" will not work, but "some-old-page" will work).

Some relevant details:

  • Umbraco 7.5.11.
  • I have trailing slashes turned off in the umbracoSettings.config.
  • I have a multi-tenant install (i.e., multiple domains served by different content trees).
  • I have custom content finders and URL providers.

1 Attachments

Comments

Nicholas Westby 30 Mar 2017, 03:42:44

I am also getting this error now when I log in (and the redirect dashboard appears):

!redirect-server-error.png!

Might be related to the fact that I have 1132 redirects (i.e., a fairly large amount). No errors in the Umbraco log.

The URL is "/umbraco/backoffice/UmbracoApi/RedirectUrlManagement/SearchRedirectUrls?searchTerm=&page=0&pageSize=20". It returns a 500 response. The response data is:

{"Message":"An error has occurred."}

Not a very informative error message.


Priority: Normal

Type: Bug

State: Submitted

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.5.11

Due in version:

Sprint:

Story Points:

Cycle: