Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#42: Correcting initial redirect, don't create alternate URLs if para…
…meters have 'issues'.
- Loading branch information
Showing
2 changed files
with
70 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2adeec5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the redirect was getting done prior to some sort of validation? and moving the redirect to after the validation into the canonical function was the answer?
i will try and test it later, but bravo! well done!
👍 👍
2adeec5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That redirect was (in prior versions) being done in the usu class-constructor, after its call to generate the canonical link.
The canonical generation is now 'called for' within the storefront's USU observer, upon receiving notification from the
init_canonical.php
module's processing. Moving the call to determine whether/not the redirect is needed into thecanonical
method provides the same sequencing now, just in a different spot.