diff --git a/modules/custom/martplug_splash/martplug_splash.module b/modules/custom/martplug_splash/martplug_splash.module
index 7d552aa..137dcda 100644
--- a/modules/custom/martplug_splash/martplug_splash.module
+++ b/modules/custom/martplug_splash/martplug_splash.module
@@ -37,7 +37,7 @@ function martplug_splash_admin_paths() {
  */
 function martplug_splash_init() {
   if (drupal_is_front_page() && user_access('administer site configuration') && !variable_get('martplug_splash_welcome_seen', FALSE)) {
-    drupal_add_js('jQuery(document).ready(function() { document.location.hash = "overlay=martplug/splash"; });', 'inline');
+    drupal_add_js('jQuery(document).ready(function() { document.location.hash = Drupal.settings.basePath + "overlay=martplug/splash"; });', 'inline');
     
     // Make splash page display only once.
     variable_set('martplug_splash_welcome_seen', TRUE);
