We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e30cd9 commit 847dfe8Copy full SHA for 847dfe8
js/jsonld.js
@@ -8111,6 +8111,13 @@ jsonld.url.parse = function(str, parser) {
8111
while(i--) {
8112
parsed[o.keys[i]] = (m[i] === undefined) ? null : m[i];
8113
}
8114
+ // remove default ports in found in URLs
8115
+ if((parsed.scheme === 'https' && parsed.port === '443') ||
8116
+ (parsed.scheme === 'http' && parsed.port === '80')) {
8117
+ parsed.href = parsed.href.replace(':' + parsed.port, '');
8118
+ parsed.authority = parsed.authority.replace(':' + parsed.port, '');
8119
+ parsed.port = null;
8120
+ }
8121
parsed.normalizedPath = _removeDotSegments(parsed.path, !!parsed.authority);
8122
return parsed;
8123
};
0 commit comments