diff options
-rw-r--r-- | include/functions_url.inc.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php index ee7ac1443..a192d21cf 100644 --- a/include/functions_url.inc.php +++ b/include/functions_url.inc.php @@ -134,8 +134,17 @@ function make_index_url($params = array()) { $url .= '?'; } + + $url_before_params = $url; + $url.= make_section_in_url($params); $url = add_well_known_params_in_url($url, $params); + + if ($url == $url_before_params) + { + $url = get_absolute_root_url(); + } + return $url; } |