Skip to content

Commit

Permalink
Fixed #130
Browse files Browse the repository at this point in the history
  • Loading branch information
Tam committed Sep 3, 2018
1 parent e70f4e0 commit 679474e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## 3.3.1 - WIP
## 3.3.1 - 2018-09-03
### Fixed
- `craft.seo.custom` social images now fallback to the default social image from global settings. #113
- Fixed bug where some requests would 404 when injecting 🤖's #130

### Changed
- SEO robots no longer return empty values #110
- Text in the keyword input will automatically be turned into a tag on blur #114

### Fixed
- `craft.seo.custom` social images now fallback to the default social image from global settings. #113

## 3.3.0 - 2018-05-25
**Heads up:** This update includes changes to the SEO `meta.twig`. If you are using a custom version you can 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.3.0",
"version": "3.3.1",
"type": "craft-plugin",
"minimum-stability": "dev",
"require": {
Expand Down
8 changes: 7 additions & 1 deletion src/services/SeoService.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,14 @@ class SeoService extends Component
*/
public function injectRobots ()
{
try {
$resolve = \Craft::$app->request->resolve();
} catch (\Exception $e) {
$resolve = [null, []];
}

$headers = \Craft::$app->getResponse()->getHeaders();
$resolve = \Craft::$app->request->resolve()[1];
$resolve = $resolve[1];
$variables = array_key_exists('variables', $resolve)
? $resolve['variables']
: [];
Expand Down

0 comments on commit 679474e

Please sign in to comment.