- removed url encoding;

This commit is contained in:
Vitalii Kiiko
2024-12-06 16:56:00 +01:00
parent 50a0a3b211
commit ed6abc1e95

View File

@@ -266,7 +266,7 @@ const DomandaEditPreInstructor = () => {
case 'fileupload' :
content = <ul>
{item.fieldValue.map(o => <li key={o.id}>
{o.filePath ? <a href={encodeURI(o.filePath)}>{o.name}</a> : null}
{o.filePath ? <a href={o.filePath}>{o.name}</a> : null}
</li>)}
</ul>;
break;
@@ -557,7 +557,7 @@ const DomandaEditPreInstructor = () => {
{o.fileDetail && o.fileDetail.length === 1
? <Button icon="pi pi-eye" rounded
onClick={() => {
window.open(encodeURI(o.fileDetail[0].filePath), '_blank').focus()
window.open(o.fileDetail[0].filePath, '_blank').focus()
}}
outlined severity="info"
aria-label={__('Mostra', 'gepafin')}/> : null}
@@ -598,7 +598,7 @@ const DomandaEditPreInstructor = () => {
<ArchiveDocument ndg={data.ndg} fileId={k.id}/>
<Button icon="pi pi-eye" rounded
onClick={() => {
window.open(encodeURI(k.filePath), '_blank').focus()
window.open(k.filePath, '_blank').focus()
}}
outlined severity="info"
aria-label={__('Mostra', 'gepafin')}/>