Skip to content

Commit

Permalink
Merge pull request #31 from apostrophecms/pro-5716-302-instead-of-301
Browse files Browse the repository at this point in the history
adds statusCode projection
  • Loading branch information
ValJed committed Mar 14, 2024
2 parents 23478c5 + 0fba45b commit 43d1a51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## UNRELEASED

* Bug fix to properly migrate older redirects missing a `targetLocale` property, and to tolerate situations where this property is irrelevant or makes reference to a locale that no longer exists in the system.
* Fixes permanent redirects (301) being 302 because `statusCode` of the redirects were never fetched.

## 1.4.0 (2024-02-23)

Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ module.exports = {
externalUrl: 1,
urlType: 1,
ignoreQueryString: 1,
forwardQueryString: 1
forwardQueryString: 1,
statusCode: 1
})
.toArray();

Expand Down

0 comments on commit 43d1a51

Please sign in to comment.