Skip to content

Commit

Permalink
fix [wordpress] /v redirect (closes #3564) (#3565)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s authored Jun 13, 2019
1 parent d37caea commit 703371d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion services/wordpress/wordpress-platform-redirect.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ module.exports = redirector({
base: 'wordpress/v',
pattern: ':slug',
},
transformPath: ({ slug }) => `/wordpress/plugin/wp-version/${slug}`,
transformPath: ({ slug }) => `/wordpress/plugin/tested/${slug}`,
dateAdded: new Date('2019-04-17'),
})
2 changes: 1 addition & 1 deletion services/wordpress/wordpress-platform-redirect.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ t.create('Plugin Tested WP Version (Alias)')
followRedirect: false,
})
.expectStatus(301)
.expectHeader('Location', '/wordpress/plugin/wp-version/akismet.svg')
.expectHeader('Location', '/wordpress/plugin/tested/akismet.svg')

0 comments on commit 703371d

Please sign in to comment.