Skip to content

Commit

Permalink
RedirectToList page using relative redirect not static path
Browse files Browse the repository at this point in the history
  • Loading branch information
klucznik authored and mikeho committed Aug 11, 2010
1 parent df12080 commit 4499c3e
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -135,9 +135,12 @@
}
// Other Methods
protected function RedirectToListPage() {
QApplication::Redirect(__VIRTUAL_DIRECTORY__ . __FORM_DRAFTS__ . '/<%= strtolower($objTable->Name) %>_list.php');
$strRedirect = '<%= strtolower($objTable->Name) %>_list.php';
for ($intPathCount = count(QApplication::PathInfo()); $intPathCount > 0; $intPathCount--)
$strRedirect = '../' . $strRedirect;
QApplication::Redirect($strRedirect);
}
}
Expand Down

0 comments on commit 4499c3e

Please sign in to comment.