Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
Fixed bug where redirects containing trailing slashes were not redirected!
  • Loading branch information
Tam committed Mar 31, 2016
1 parent 0ed950d commit 0703032
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,17 @@ All parameters are optional.


## TODO
- [ ] Add redirect support for .htaccess & web.config to improve performance
- [ ] Add hooks for plugin support
- [ ] Include more fields in snippet (i.e. Type, Image, etc.)
- [ ] Allow for multiple focus keywords
- [ ] Make the SEO dashboard more useful. Somehow.

## Changelog

### 1.0.3
- Fixed bug where redirects containing trailing slashes were not redirected!

### 1.0.2
- Stopped SEO fields showing up in the Readability Check list for the SEO fieldtype.

Expand Down
2 changes: 1 addition & 1 deletion SeoPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getDescription()

public function getVersion()
{
return '1.0.2';
return '1.0.3';
}

public function getSchemaVersion()
Expand Down
8 changes: 8 additions & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,13 @@
"notes": [
"Stopped SEO fields showing up in the Readability Check list for the SEO fieldtype."
]
},
{
"version": "1.0.3",
"downloadUrl": "https://github.com/ethercreative/seo/archive/v1.0.3.zip",
"date": "2016-03-31T10:00:00-08:00",
"notes": [
"Fixed bug where redirects containing trailing slashes were not redirected!"
]
}
]
2 changes: 1 addition & 1 deletion services/Seo_RedirectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function findRedirectByPath ($path)
{
$to = false;

if ($redirect['uri'] == $path)
if (trim($redirect['uri'], '/') == $path)
{
$to = $redirect['to'];
}
Expand Down

0 comments on commit 0703032

Please sign in to comment.