fix #1315 preserve amabuild in URL on test.htm

If someone opens a page test.htm?amabuild=true and types the classpath, the amabuild param
is not preserved. This commit fixes that issue