fix: Remove wire:navigate to fix MIME type error
Livewire 3's SPA navigation (wire:navigate) was causing the browser to register document URLs as JavaScript sources, resulting in: 'Refused to execute script... MIME type text/html is not executable' Removed wire:navigate from: - partials/tree-item.blade.php (sidebar links) - livewire/document-viewer.blade.php (backlinks) - livewire/quick-switcher.blade.php (search results) Pages will now do full page loads instead of SPA navigation.
This commit is contained in:
@@ -53,7 +53,6 @@ class="inline-flex items-center px-4 py-2 bg-indigo-600 text-white text-sm font-
|
||||
<a
|
||||
href="{{ route('documents.show', $backlink) }}"
|
||||
class="block p-4 bg-gray-50 rounded-lg hover:bg-gray-100 transition"
|
||||
wire:navigate
|
||||
>
|
||||
<div class="flex items-center">
|
||||
<svg class="w-4 h-4 mr-2 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
|
||||
@@ -70,7 +70,6 @@ class="w-full pl-10 pr-4 py-3 border-0 focus:ring-0 text-lg"
|
||||
<a
|
||||
href="{{ route('documents.show', $result['slug']) }}"
|
||||
class="block px-4 py-3 hover:bg-gray-50 transition {{ $index === $selectedIndex ? 'bg-indigo-50' : '' }}"
|
||||
wire:navigate
|
||||
@click="open = false"
|
||||
>
|
||||
<div class="flex items-center justify-between">
|
||||
|
||||
Reference in New Issue
Block a user