Skip to content

Commit

Permalink
Switching projects should maintain current page
Browse files Browse the repository at this point in the history
When possible maintain the current page as user switches projects.
A bug was introduced in b78f966
that made switching projects always redirects to default home page.

Fixes #19351
  • Loading branch information
vboctor committed Feb 19, 2015
1 parent 5f25272 commit 9ad6013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion set_project.php
Expand Up @@ -84,7 +84,7 @@

# Check that referrer matches our address after squashing case (case insensitive compare)
$t_path = rtrim( config_get( 'path' ), '/' );
if( preg_match( '@^(' . $t_path . ')/(?:/*([^\?#]*))(.*)?\$@', $_SERVER['HTTP_REFERER'], $t_matches ) ) {
if( preg_match( '@^(' . $t_path . ')/(?:/*([^\?#]*))(.*)?$@', $_SERVER['HTTP_REFERER'], $t_matches ) ) {
$t_referrer_page = $t_matches[2];
$t_param = $t_matches[3];

Expand Down

0 comments on commit 9ad6013

Please sign in to comment.