Skip to content

Commit

Permalink
Remove non-HTTPS workaround for web editor links (#59)
Browse files Browse the repository at this point in the history
Due to the enforcement during the crawling process, all indexed backends use HTTPS anyway.
  • Loading branch information
christophfriedrich committed Sep 4, 2020
1 parent a3b69b4 commit daef6da
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/Backend.vue
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,11 @@ export default {
computed: {
webEditorUrl() {
var protocol = 'https:';
if (this.backend.backendUrl.toLowerCase().substr(0,5) === 'http:') {
protocol = 'http:';
}
var version = ''; // no need to specify a version for 1.0 (default)
if(this.backend.api_version.startsWith('0.4')) {
version = '0.4/';
}
return protocol + '//editor.openeo.org/' + version + '?server=' + encodeURIComponent(this.backend.backendUrl);
return 'https://editor.openeo.org/' + version + '?server=' + encodeURIComponent(this.backend.backendUrl);
},
webEditorUnavailable() {
// unavailable if api_version is known and starts with '0.3' (treat as available if api_version is not known)
Expand Down

0 comments on commit daef6da

Please sign in to comment.