File tree 1 file changed +5
-5
lines changed
invenio_rdm_records/resources
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -357,8 +357,8 @@ def _rewrite_url(self):
357
357
"""Rewrite URL.
358
358
359
359
Examples:
360
- - /iiif/record:12:image.png/ -> /iiif/12/__/image.png/
361
- - /iiif/record:1234:image.png/ -> /iiif/12/34_ /image.png/
360
+ - /iiif/record:12:image.png/ -> /iiif/12/__/_/ image.png/
361
+ - /iiif/record:1234:image.png/ -> /iiif/12/34/_ /image.png/
362
362
- /iiif/record:1234567:image.png/ -> /iiif/12/34/567_/image.png/
363
363
"""
364
364
uuid = resource_requestctx .view_args ["uuid" ]
@@ -369,9 +369,9 @@ def _rewrite_url(self):
369
369
end_parts = recid_parts [2 :]
370
370
recid_path = "/" .join (start_parts )
371
371
if end_parts :
372
- recid_path += f"/{ '' .join (end_parts )} "
373
- if not recid_path . endswith ( "_" ) :
374
- recid_path += "_"
372
+ recid_path += f"/{ '' .join (end_parts )} _ "
373
+ else :
374
+ recid_path += "/ _"
375
375
376
376
path = request .path
377
377
path = path .replace (uuid , f"{ recid_path } /{ filename } .ptif" )
You can’t perform that action at this time.
0 commit comments