Skip to content

URL Utilities

Latest

Choose a tag to compare

@bharathidas bharathidas released this 20 Aug 13:03
b8ea44a

URL Utilities — Studio Pro 10.24.17

Fixed

Two Normalize URL parameters were silently inert. URL Parse was unaffected.

forceHTTP did nothing. The option was passed as forceHTTP, but normalize-url reads forceHttp. The case did not match, so HTTPS URLs were never downgraded. Verified against the bundled library:

Option key https://example.com/a becomes
forceHTTP (as shipped) https://example.com/a — unchanged
forceHttp (fixed) http://example.com/a

keepQueryParameters did nothing. The library requires an array and guards with Array.isArray; the action built a string such as '[keep]', which failed the guard and was discarded, so no parameter was ever preserved by name. It now accepts a comma-separated list and passes a real array:

Value …/p?keep=1&drop=2 with removeQueryParameters on
'[keep]' (as shipped) https://example.com/p — everything dropped
['keep'] (fixed) https://example.com/p?keep=1

Leaving the parameter empty previously passed the literal string 'undefined'; it now passes nothing at all.

Usage: enter parameter names separated by commas — id,ref — and leave the field empty to keep all of them.

Both defects predate the 10.24.17 upgrade. Upgrading is recommended.

Notes

Studio Pro 10.24.17, imports with 0 errors. Import URLUtilities.mpk via App Explorer > Import module package.