Skip to content

Commit 9491cc9

Browse files
authored
Merge pull request #8831 from Fryguy/fix_auth_error_breadcrumbs
Fix page title on auth_error screen
2 parents bfc1306 + 690da12 commit 9491cc9

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

app/controllers/dashboard_controller.rb

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -622,11 +622,19 @@ def identity_provider_login(identity_type)
622622
end
623623

624624
def breadcrumbs_options
625-
{
626-
:breadcrumbs => [
627-
{:title => _("Overview")},
628-
{:title => (action_name == "show" ? _("Dashboard") : _("Timelines"))},
629-
],
630-
}
625+
if action_name == "auth_error"
626+
{
627+
:breadcrumbs => [
628+
{:title => _("Authorization Error")}
629+
]
630+
}
631+
else
632+
{
633+
:breadcrumbs => [
634+
{:title => _("Overview")},
635+
{:title => (action_name == "show" ? _("Dashboard") : _("Timelines"))},
636+
]
637+
}
638+
end
631639
end
632640
end

0 commit comments

Comments
 (0)