Changed the base url validation

pull/1959/head
tidusjar 7 years ago
parent 801b212bd4
commit 3f6bd63f03

@ -42,8 +42,8 @@ export class OmbiComponent implements OnInit {
const result = <IOmbiSettings>form.value;
if(result.baseUrl.length > 0) {
if(result.baseUrl.indexOf("/") <= 0) {
this.notificationService.error("Please ensure your base url start with a '/'");
if(!result.baseUrl.startsWith("/")) {
this.notificationService.error("Please ensure your base url starts with a '/'");
return;
}
}

Loading…
Cancel
Save