Index: src/main.c ================================================================== --- src/main.c +++ src/main.c @@ -1201,10 +1201,11 @@ } zRepo[j] = '.'; } if( szFile<1024 ){ + set_base_url(); if( zNotFound ){ cgi_redirect(zNotFound); }else{ #ifdef FOSSIL_ENABLE_JSON if(g.json.isJsonMode){