Skip to content

Commit

Permalink
More robust handling of of Web Page Builder custom settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhibbitts committed Nov 19, 2024
1 parent 3b61c29 commit 629bf8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@
return; // Exit if basePath is present
}

if (getURLParameterByName(['url-field', 'urlField']) || (window.location.href.includes('?') && !window.location.href.includes('?id='))) {
if (getURLParameterByName(['url-field', 'urlField']) || (window.location.href.includes('?') && /[?&](url-field|urlField|https?:\/\/[^\s]+|www\.[^\s]+|[a-z0-9.-]+\.[a-z]{2,})/i.test(window.location.href))) {
var markdownFileURL = '';

// Check if the URL has only a '?' followed by content, without any '='
Expand Down

0 comments on commit 629bf8e

Please sign in to comment.