Skip to content

Commit 2cc4ca2

Browse files
Update HasAjax.php
Change `url()->full()` method to `url()->current()` to solve Mixed Content when using forceScheme('https') function in Laravel
1 parent 51a6dbf commit 2cc4ca2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Html/Options/HasAjax.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function minifiedAjax(
142142
$this->ajax = [];
143143
$appendData = $this->makeDataScript($data);
144144

145-
$this->ajax['url'] = empty($url) ? url()->full() : $url;
145+
$this->ajax['url'] = empty($url) ? url()->current() : $url;
146146
$this->ajax['type'] = 'GET';
147147
if (! isset($this->attributes['serverSide']) || $this->attributes['serverSide']) {
148148
$this->ajax['data'] = 'function(data) {

0 commit comments

Comments
 (0)