Skip to content

Commit

Permalink
MDL-38766 wiki2.0: fix redirects
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Campbell <pcampbell@carnegiecollege.ac.uk>
  • Loading branch information
Paul Campbell committed Apr 5, 2013
1 parent d8201d4 commit 4f6c447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/wiki/pagelib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2056,7 +2056,7 @@ protected function print_save() {

//deleting old locks
wiki_delete_locks($this->page->id, $USER->id, $this->section);
$url = new moodle_url('view.php', array('pageid' => $this->page->id, 'group' => $this->subwiki->groupid));
$url = new moodle_url('/mod/wiki/view.php', array('pageid' => $this->page->id, 'group' => $this->subwiki->groupid));
redirect($url);
} else {
print_error('savingerror', 'wiki');
Expand Down

0 comments on commit 4f6c447

Please sign in to comment.