Skip to content

Commit

Permalink
Merge pull request #401 from AcclaroInc/bug/#497/error-plugin-setting…
Browse files Browse the repository at this point in the history
…-url-in-plugin-page

fixed: error opening plugin settings page
  • Loading branch information
bhupeshappfoster authored Sep 30, 2022
2 parents 34ddc92 + e9fe143 commit ecd925f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translations.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function getCpNavItem(): ?array
public function getSettingsResponse(): mixed
{
// Just redirect to the plugin settings page
Craft::$app->getResponse()->redirect(UrlHelper::cpUrl(Constants::URL_SETTINGS));
return Craft::$app->getResponse()->redirect(UrlHelper::cpUrl(Constants::URL_SETTINGS));
}

protected function createSettingsModel(): ?\craft\base\Model
Expand Down

0 comments on commit ecd925f

Please sign in to comment.