1.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt Tue Sep 08 15:29:15 2009 +0200
1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt Thu Sep 10 22:48:21 2009 +0200
1.3 @@ -59,7 +59,7 @@
1.4 </#list>
1.5 </ol>
1.6
1.7 - <form action="games/create">
1.8 + <form action="/games/create">
1.9 ${bundle.WHITE}: <input type="text" name="white" value="" />
1.10 ${bundle.BLACK}: <input type="text" name="black" value="" />
1.11 <input type="submit" value="${bundle.CREATE}" />
2.1 --- a/freemarkerdor/src/test/java/cz/xelfi/quoridor/freemarkerdor/UITest.java Tue Sep 08 15:29:15 2009 +0200
2.2 +++ b/freemarkerdor/src/test/java/cz/xelfi/quoridor/freemarkerdor/UITest.java Thu Sep 10 22:48:21 2009 +0200
2.3 @@ -125,7 +125,7 @@
2.4 fail("There was an error:\n" + res);
2.5 }
2.6 res = webResource.cookie(Cookie.valueOf("login=jarda")).accept("text/html").get(String.class);
2.7 - if (res.indexOf("action=\"games/create\"") == -1) {
2.8 + if (res.indexOf("action=\"/games/create\"") == -1) {
2.9 fail(res);
2.10 }
2.11 }