Back arrow from dashboard appends wrong cID (142 -> download_file.php)

Permalink
Howdy,

When I open one of the dashboard pages such as /dashboard/system (it doesn't matter which one,) the 'back to site arrow' in the top left is to /index.php?cID=142 however my site only has one page and it's cID=1. When I click it I get the error:

Download File
Invalid File.

If I run SELECT * FROM `Pages` WHERE cID =142 against the DB 142 is cFilename /download_file.php

omniomi
 
omniomi replied on at Permalink Reply
omniomi
This seems to be an issue with

$u = new User();
$frontendPageID = $u->getPreviousFrontendPageID();
if (!$frontendPageID) {
$backLink = DIR_REL . '/';
} else {
$backLink = DIR_REL . '/' . DISPATCHER_FILENAME . '?cID=' . $frontendPageID;
}


For some reason $u->getPreviousFrontendPageID() is returning 142 instead of the correct cID.

Anyone have any ideas?
omniomi replied on at Permalink Reply
omniomi
Found the issue.. create bug report:https://www.concrete5.org/index.php?cID=738807...