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">
|
||||
|
||||
Reference in New Issue
Block a user