Support .-Symbol in IDs

Change-Id: I16d27493064ae1449360a382a1e49b21c542b09c
diff --git a/t/server/mock.pl b/t/server/mock.pl
index e27542a..3b0959f 100644
--- a/t/server/mock.pl
+++ b/t/server/mock.pl
@@ -227,7 +227,7 @@
 };
 
 # Textinfo fixtures
-get '/v1.0/corpus/:corpusId/:docId/:textId' => sub {
+get '/v1.0/corpus/#corpusId/#docId/#textId' => sub {
   my $c = shift;
 
   my $file = join('_', (
@@ -246,7 +246,7 @@
 
 
 # Matchinfo fixtures
-get '/v1.0/corpus/:corpusId/:docId/:textId/:matchId/matchInfo' => sub {
+get '/v1.0/corpus/#corpusId/#docId/#textId/#matchId/matchInfo' => sub {
   my $c = shift;
 
   my $file = join('_', (
diff --git a/t/text_info.t b/t/text_info.t
index 82e6a97..55b9637 100644
--- a/t/text_info.t
+++ b/t/text_info.t
@@ -37,6 +37,13 @@
   ->json_is('/notifications/0/1', '630: Document not found')
   ;
 
+# Real example from NKJP
+$t->get_ok('/corpus/NKJP/NKJP/forumowisko.pl_57')
+  ->status_is(200)
+  ->json_like('/notifications/0/1', qr!^Unable to load!)
+  ;
+
+
 
 done_testing;
 __END__