Differences From:
File
src/wiki.c
part of check-in
[3420e47b24]
- Try again to get the redirection correct when redirecting from /home to
/login.
by
drh on
2008-11-20 23:17:50.
[view]
To:
File
src/wiki.c
part of check-in
[0a523be389]
- Another attempt to get the /home to /login redirection correct.
by
drh on
2008-11-20 23:19:41.
[view]
@@ -81,9 +81,9 @@
void home_page(void){
char *zPageName = db_get("project-name",0);
login_check_credentials();
if( !g.okRdWiki ){
- cgi_redirectf("%s/login?g=/home", g.zBaseURL);
+ cgi_redirectf("%s/login?g=%s/home", g.zBaseURL, g.zBaseURL);
}
if( zPageName ){
login_check_credentials();
g.zExtra = zPageName;