Skip to content

Commit

Permalink
Merge branch 'v3-dev' into v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Sep 6, 2018
2 parents eeb40ee + f9a0d8c commit c200bb8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.4.1 - 2018-09-06
### Fixed
- Fixed a bug when adding a redirect to all sites.

## 3.4.0 - 2018-09-06

> {warning} This update contains some potentially breaking changes. If you use a custom `meta.twig` template you should review the changes [here](https://github.com/ethercreative/seo/commits/v3/src/templates/_seo/meta.twig).
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ether/seo",
"license": "MIT",
"description": "SEO utilities including a unique field type, sitemap, & redirect manager",
"version": "3.4.0",
"version": "3.4.1",
"type": "craft-plugin",
"minimum-stability": "dev",
"require": {
Expand Down
3 changes: 3 additions & 0 deletions src/services/RedirectsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ public function findRedirectByPath ($path)
*/
public function save ($uri, $to, $type, $siteId = null, $id = null)
{
if ($siteId === 'null')
$siteId = null;

if ($id)
{
$record = RedirectRecord::findOne(compact('id'));
Expand Down

0 comments on commit c200bb8

Please sign in to comment.