From c8696bc2d33ce0d7cfd81403d2a9098d04286985 Mon Sep 17 00:00:00 2001 From: atutor Date: Sat, 23 May 2015 12:20:55 -0400 Subject: [PATCH] 5584: adjusted paths for var when pretty URL in enabled w/o mod_rewrite, and when prettyURL is disabled --- bounce.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bounce.php b/bounce.php index cbf6c584d..4715af98a 100644 --- a/bounce.php +++ b/bounce.php @@ -155,11 +155,10 @@ function get_groups($course_id) { } else { if ($_config['pretty_url']) { - $orig_url = AT_PRETTY_URL_HANDLER.$_REQUEST['pu']; - $page = (substr($_REQUEST['pu'], -1) == '/') ? ($orig_url. 'ib/1/') : ($orig_url .'/ib/1/'); + $page = url_rewrite($_REQUEST['pu'], AT_PRETTY_URL_NOT_HEADER, true) . 'ib/1'; } else - $page = AT_PRETTY_URL_HANDLER.$_REQUEST['pu'] . SEP .'ib=1'; + $page = $_REQUEST['pu'] . SEP .'ib=1'; } } elseif (!empty($_REQUEST['p'])) { //For search