diff --git a/resources/views/clients/show.blade.php b/resources/views/clients/show.blade.php index 3db9ccb8e066..fe5c88e6ab3c 100644 --- a/resources/views/clients/show.blade.php +++ b/resources/views/clients/show.blade.php @@ -306,7 +306,8 @@ }); var tab = window.location.hash || (localStorage.getItem('client_tab') || ''); - var selector = '.nav-tabs a[href="#' + tab.replace('#', '') + '"]'; + tab = tab.replace('#', ''); + var selector = '.nav-tabs a[href="#' + tab + '"]'; if (tab && tab != 'activity' && $(selector).length) { $(selector).tab('show'); } else {