diff --git a/public/index.php b/public/index.php index d4f929aa..f021cc91 100644 --- a/public/index.php +++ b/public/index.php @@ -13,8 +13,10 @@ if ($code_id) { $code_id = $code; -// Always include the revision. -$code_id .= '/' . ($revision || 1); +// always include revision *if* we have a code_id +if ($code_id && $revision) { + $code_id .= '/' . $revision; +} $code_id_path = ROOT; if ($code_id) {