Skip to content

Commit 78f3f63

Browse files
committed
better support for PRERENDER_URL
1 parent a8a8a9f commit 78f3f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function prepareRequestOptions(request_options, options) {
9999
request_options.uri = CONFIG.PRERENDER_URL + encodeURIComponent(uri);
100100

101101
if (proxy.prerender === 'iframes') {
102-
request_options.uri += '&allow=iframes';
102+
request_options.uri += (request_options.uri.indexOf('?') > -1 ? '&' : '?' ) + 'allow=iframes';
103103
}
104104

105105
} else if (proxy.proxy && CONFIG.PROXY_URL) {

0 commit comments

Comments
 (0)