displaying websites as HTTPS if no scheme is provided

This commit is contained in:
antelle 2019-09-08 14:11:33 +02:00
parent f4359fef92
commit c216d785aa
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
const FieldViewText = require('./field-view-text');
const FieldViewUrl = FieldViewText.extend({
displayUrlRegex: /^http:\/\//i,
displayUrlRegex: /^https:\/\//i,
cssClass: 'url',
renderValue(value) {
@ -15,7 +15,7 @@ const FieldViewUrl = FieldViewText.extend({
},
fixUrl(url) {
return url.indexOf(':') < 0 ? 'http://' + url : url;
return url.indexOf(':') < 0 ? 'https://' + url : url;
},
displayUrl(url) {

View File

@ -9,6 +9,7 @@ Release notes
`*` donation link changed
`-` fixed field editing styles
`*` dropped support for browsers without css variables
`*` displaying websites as HTTPS if no scheme is provided
##### v1.9.3 (2019-09-07)
`-` fixed group settings not being displayed