Skip to content

Commit f507509

Browse files
Alexey PortnovAlexey Portnov
authored andcommitted
Fix: виджет — корректная подмена host в ссылках на записи при нестандартном порту PBX
1 parent 7a88ad4 commit f507509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

widget/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ define(function (require) {
100100
}
101101
$(this).each(() => {
102102
let oldUrl = $(this).attr('href');
103-
let oldHost = (new URL(oldUrl)).hostname;
103+
let oldHost = (new URL(oldUrl)).host;
104104
if(oldHost === self.settings.pbxHost){
105105
return;
106106
}

0 commit comments

Comments
 (0)