Skip to content

Commit 81822ec

Browse files
committed
add basic return url
1 parent 0d8b5b8 commit 81822ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

post.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
$confirm = optional_param('confirm', 0, PARAM_INT);
4141

4242
// Set the URL that should be used to return to this page.
43+
$SESSION->errorreturnurl = get_local_referer(false);
4344
$PAGE->set_url('/mod/moodleoverflow/post.php', ['moodleoverflow' => $moodleoverflow, 'reply' => $reply, 'edit' => $edit,
4445
'delete' => $delete, 'confirm' => $confirm, ]);
4546

0 commit comments

Comments
 (0)