File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
inst/rmarkdown/templates/flex_dashboard/resources Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1202,14 +1202,14 @@ var FlexDashboard = (function () {
1202
1202
function handleLocationHash ( ) {
1203
1203
1204
1204
// restore tab/page from bookmark
1205
- var hash = window . location . hash ;
1205
+ var hash = window . decodeURIComponent ( window . location . hash ) ;
1206
1206
if ( hash . length > 0 )
1207
1207
$ ( 'ul.nav a[href="' + hash + '"]' ) . tab ( 'show' ) ;
1208
1208
FlexDashboardUtils . manageActiveNavbarMenu ( ) ;
1209
1209
1210
1210
// navigate to a tab when the history changes
1211
1211
window . addEventListener ( "popstate" , function ( e ) {
1212
- var hash = window . location . hash ;
1212
+ var hash = window . decodeURIComponent ( window . location . hash ) ;
1213
1213
var activeTab = $ ( 'ul.nav a[href="' + hash + '"]' ) ;
1214
1214
if ( activeTab . length ) {
1215
1215
activeTab . tab ( 'show' ) ;
You can’t perform that action at this time.
0 commit comments