Fix admin root path, and update syntax.
fixes #5346
fixes #5345