diff --git a/frontend/src/metabase/admin/app/components/DeprecationNotice/DeprecationNotice.tsx b/frontend/src/metabase/admin/app/components/DeprecationNotice/DeprecationNotice.tsx index a8d039da32f82cb12698cab795f1b6988bb48d7f..9c1f252897f2096a2f172d66ac5f193475a31d58 100644 --- a/frontend/src/metabase/admin/app/components/DeprecationNotice/DeprecationNotice.tsx +++ b/frontend/src/metabase/admin/app/components/DeprecationNotice/DeprecationNotice.tsx @@ -42,7 +42,7 @@ const getBannerContent = ( hasDeprecatedDatabase: boolean, ) => { const databaseListUrl = "/admin/databases"; - const slackSettingsUrl = "/admin/settings/slack"; + const slackSettingsUrl = "/admin/settings/notifications/slack"; if (hasSlackBot && hasDeprecatedDatabase) { return jt`You’re using a ${( diff --git a/src/metabase/api/setup.clj b/src/metabase/api/setup.clj index 85107bb118e150915d760396075d78724e32f9f4..421f005aab7ee3b9d046edb1baeba5d290df7f7a 100644 --- a/src/metabase/api/setup.clj +++ b/src/metabase/api/setup.clj @@ -221,7 +221,7 @@ {:title (tru "Set Slack credentials") :group (tru "Get connected") :description (tru "Does your team use Slack? If so, you can send automated updates via dashboard subscriptions.") - :link "/admin/settings/slack" + :link "/admin/settings/notifications/slack" :completed (configured :slack) :triggered :always} {:title (tru "Setup embedding") diff --git a/src/metabase/email/slack_token_error.hbs b/src/metabase/email/slack_token_error.hbs index 6d2f3e5ec54fceeec2aa14847f2ebac112ae7ea0..35d0fd762440912dc7ccf85565bd77fbed60bc93 100644 --- a/src/metabase/email/slack_token_error.hbs +++ b/src/metabase/email/slack_token_error.hbs @@ -7,6 +7,6 @@ <h2 style="font-weight: normal; color: #4C545B; line-height: 34px;">Your Slack connection stopped working</h2> <p style="line-height: 22px; margin-bottom: 40px">This may affect existing dashboard subscriptions. Follow the steps in settings to reconnect Slack and get things up and running again.</p> </div> - <a style="{{context.style.button}}" href="{{context.site_url}}/admin/settings/slack">Go to settings</a> + <a style="{{context.style.button}}" href="{{context.site_url}}/admin/settings/notifications/slack">Go to settings</a> </div> {{> metabase/email/_footer.hbs }} diff --git a/test/metabase/notification/payload/impl/system_event_test.clj b/test/metabase/notification/payload/impl/system_event_test.clj index 8eee167ba49510d34b1f78fc715823d7bc1bac01..d2d7f539f2cd917540a39d06321bc4de3bbd59e8 100644 --- a/test/metabase/notification/payload/impl/system_event_test.clj +++ b/test/metabase/notification/payload/impl/system_event_test.clj @@ -201,7 +201,7 @@ admin-emails (t2/select-fn-set :email :model/User :is_superuser true)] (testing "send to admins with a link to setting page" (check admin-emails [#"Your Slack connection stopped working" - #"<a[^>]*href=\"https?://metabase\.com/admin/settings/slack\"[^>]*>Go to settings</a>"])) + #"<a[^>]*href=\"https?://metabase\.com/admin/settings/notifications/slack\"[^>]*>Go to settings</a>"])) (mt/with-temporary-setting-values [admin-email "it@metabase.com"]