Commit 5bb04ff1 authored by Zac Wood's avatar Zac Wood

possibly fix a bug with search and https?

parent 9c55e4b0
Pipeline #5326 passed with stage
in 11 seconds
......@@ -7,6 +7,8 @@ export default class extends Controller {
search(event) {
event.preventDefault()
Turbolinks.visit(buildUrl(`/search?query=${this.inputTarget.value}`))
const url = `/search?query=${this.inputTarget.value}`
Turbolinks.visit(url)
}
}
console.log('AHHH')
......@@ -2,7 +2,8 @@ import { saveAs } from 'file-saver'
export function buildUrl(url, protocol = window.location.protocol) {
const port = window.location.port === '3000' ? ':3000' : ''
return `${protocol}//${window.location.hostname}${port}${url}`
const result = `${protocol}//${window.location.hostname}${port}${url}`
return result
}
export function downloadIcal(url, filename) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment