Commit 3c4c73b 1 parent 941f3a5 commit 3c4c73b Copy full SHA for 3c4c73b
File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ async function importUrl(url) {
44
44
url . fromOrg ??= fromOrg ;
45
45
46
46
const { pathname, href } = url ;
47
- if ( href . endsWith ( '.xml' ) || href . endsWith ( '.html' ) ) {
47
+ if ( href . endsWith ( '.xml' ) || href . endsWith ( '.html' ) || href . includes ( 'query-index' ) ) {
48
48
url . status = 'error' ;
49
- url . error = 'DA does not support XML or raw HTML .' ;
49
+ url . error = 'DA does not support XML, HTML, or query index files .' ;
50
50
return ;
51
51
}
52
52
@@ -66,7 +66,7 @@ async function importUrl(url) {
66
66
try {
67
67
const resp = await fetch ( `${ url . origin } ${ srcPath } ` ) ;
68
68
console . log ( "fetched resource from AEM at: " , `${ url . origin } ${ srcPath } ` )
69
- if ( resp . redirected && ! srcPath . endsWith ( '.mp4' ) ) {
69
+ if ( resp . redirected && ! ( srcPath . endsWith ( '.mp4' ) || srcPath . endsWith ( '.png' ) || srcPath . endsWith ( '.jpg' ) ) ) {
70
70
url . status = 'redir' ;
71
71
throw new Error ( 'redir' ) ;
72
72
}
You can’t perform that action at this time.
0 commit comments