Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect issues after updating MODX to 272 #127

Open
sdrenth opened this issue Jan 7, 2020 · 0 comments
Open

Redirect issues after updating MODX to 272 #127

sdrenth opened this issue Jan 7, 2020 · 0 comments

Comments

@sdrenth
Copy link

sdrenth commented Jan 7, 2020

After updating MODX to the latest version (2.7.2-pl) I've found that the taggergateway class keeps redirecting my taggergroup page, for example: domain.ext/tag-test/my-tag-alias.

This is because the code checks if the latest array value is not an empty string, then it will redirect. But because that always has a value it will also always keep redirecting the page:

if ($this->pieces[count($this->pieces) - 1] != '') {
    $this->modx->sendRedirect(MODX_SITE_URL . implode('/', $this->pieces) . '/', array('responseCode' => $_SERVER['SERVER_PROTOCOL'] . ' 301 Moved Permanently'));
}	
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant