Skip to content

[MWPW-150667] - milolibs query parameter not working#42

Open
robert-bogos wants to merge 1 commit into
adobecom:mainfrom
robert-bogos:MWPW-150667-milolibs
Open

[MWPW-150667] - milolibs query parameter not working#42
robert-bogos wants to merge 1 commit into
adobecom:mainfrom
robert-bogos:MWPW-150667-milolibs

Conversation

@robert-bogos

Copy link
Copy Markdown

Description:

This PR extends the nonprod hostnames check that determines if the milolibs query parameter is allowed.

Resolves:

https://jira.corp.adobe.com/browse/MWPW-150667

Test URLs:

Comment thread scripts/utils.js
libs = (() => {
const { hostname, search } = location || window.location;
if (!(hostname.includes('.hlx.') || hostname.includes('local'))) return prodLibs;
if (!['.hlx.', '.stage.', 'local'].some((i) => hostname.includes(i))) return prodLibs;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for not going for the more specific 'localhost' hostname?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason, I wanted to use the same string as was used in the former version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants