diff --git a/include/themes/modern/main.js b/include/themes/modern/main.js index 2d6c0accf..e57664d39 100644 --- a/include/themes/modern/main.js +++ b/include/themes/modern/main.js @@ -17,7 +17,10 @@ function themeReady() { /* execute an ajax request to load the data */ href = $(this).attr('href'); - pageName = basename(href); + + if (href != null) { + pageName = basename(href); + } $.get(href, function(html) { var htmlObject = $(html);