Index: branches/releng-11/nanobsd/files/usr/local/www/portal/index.cgi
===================================================================
--- branches/releng-11/nanobsd/files/usr/local/www/portal/index.cgi	(revision 13736)
+++ branches/releng-11/nanobsd/files/usr/local/www/portal/index.cgi	(revision 13737)
@@ -17,8 +17,8 @@
 if grep -q $REMOTE_MAC $DB; then
   # User has already been here (ones) continue authention directly
-  ./login/index.cgi
+  `dirname $0`/login/index.cgi
 elif grep -q $REMOTE_MAC $AUTOLOGIN_DB; then
   # Device is marked as special, continue with autologin
-  ./login/index.cgi
+  `dirname $0`/login/index.cgi
 else
   echo 'Content-Type: text/html'
