apostrophecms / apostrophe-redirects

Allows admins to create redirects within an Apostrophe site
2 stars 2 forks source link

Change url in redirect to slug #5

Closed austinstarin closed 7 years ago

austinstarin commented 7 years ago

Running into an issue with _url when a site prefix is set. For example /my-prefix/old-url will redirect to /my-prefix/my-prefix/old-url.

boutell commented 7 years ago

On reflection this is a reasonable fix for now. It's unlikely that _url for a plain old page will have been adjusted in ways other than adding the prefix, and we'd need to add a feature to make the raw, non-prefixing version of res.redirect available. A good idea but not necessary for today.