File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ def vtt_stream(identifier):
216
216
@app .route ('/iiif/<identifier>/manifest.json' )
217
217
@cache .cached (timeout = cache_timeouts ["long" ], forced_update = cache_bust )
218
218
def manifest (identifier ):
219
- validate_ia_identifier (identifier , page_suffix = True )
219
+ validate_ia_identifier (identifier , page_suffix = False )
220
220
return redirect (f'/iiif/3/{ identifier } /manifest.json' , code = 302 )
221
221
222
222
@app .route ('/iiif/2/<identifier>/manifest.json' )
@@ -279,8 +279,8 @@ def validate_ia_identifier(identifier: str, page_suffix: bool) -> None:
279
279
if page_suffix :
280
280
if not re .match (r'^[a-zA-Z0-9_.-]{1,100}(\$\d+)?$' , identifier ):
281
281
abort (400 , "Invalid identifier" )
282
- return
283
-
282
+ return
283
+
284
284
if not re .match (r'^[a-zA-Z0-9_.-]{1,100}$' , identifier ):
285
285
abort (400 , "Invalid identifier" )
286
286
return
You can’t perform that action at this time.
0 commit comments