nystudio107 / craft-retour

Retour allows you to intelligently redirect legacy URLs, so that you don't lose SEO value when rebuilding & restructuring a website
https://nystudio107.com/plugins/retour
Other
38 stars 26 forks source link

Have exact match redirects trigger events #274

Closed JasonStainton closed 1 year ago

JasonStainton commented 1 year ago

Running exact match redirects through resolveRedirect means they trigger the resolve(d) events.

Related issues

fixes #273

khalwat commented 1 year ago

I very much appreciate the PR, but just calling resolveRedirect() here can cause complications. I'll have a fix shortly.

JasonStainton commented 1 year ago

Did wonder if it'd be as simple as that, I didn't want to duplicate the code unnecessarily. Could've just added the events to the existing call instead.