diff --git a/src/components/domains/list/discover-subdomains.vue b/src/components/domains/list/discover-subdomains.vue index 9f55285..ceb8d41 100644 --- a/src/components/domains/list/discover-subdomains.vue +++ b/src/components/domains/list/discover-subdomains.vue @@ -162,7 +162,7 @@ export default { find_suggestions: function () { this.loading_suggestions = true; - http.post('data/urllist/suggest-subdomains/', {domain: this.input_domain, period: this.period}).then(server_response => { + http.get('data/urllist/suggest-subdomains/', { params: { domain: this.input_domain, period: this.period } }).then(server_response => { if (server_response.data.length > 0) { // allow the top level domain also to be added / selected as a convenience. this.suggestions = [this.input_domain]; @@ -170,6 +170,7 @@ export default { this.suggestions.push(suggestion + "." + this.input_domain); }) } else { + console.error("Failed loading suggestions.") this.suggestions = []; } this.loading_suggestions = false; @@ -242,4 +243,4 @@ export default { "enter_domain_name": "Voor een domeinnaam in zoals internet.nl om subdomeinen te vinden..." } } - \ No newline at end of file +