fix: Replace hardcoded paths with route/url helpers for subdirectory support

Files updated:
- layouts/knowledge-base.blade.php - Use url('/') for home link
- layouts/navigation.blade.php - Use url('/') for nav links
- layouts/guest.blade.php - Use url('/') for logo link
- Document.php - Use route() for wiki links
- DocumentLink.php - Use route() for URL attribute
- AuthenticatedSessionController.php - Use url('/') for redirects
- DocumentEditor.php - Use url('/') for redirect
- ProfileController.php - Use url('/') for redirect

This ensures the app works when deployed in a subdirectory
This commit is contained in:
2025-11-29 17:14:46 +09:00
parent 25613eea05
commit 893d3c7a69
9 changed files with 18 additions and 12 deletions

View File

@@ -34,7 +34,7 @@
<div class="max-w-full mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center space-x-3">
<a href="/" class="flex items-center space-x-3">
<a href="{{ url('/') }}" class="flex items-center space-x-3">
<x-application-logo class="block h-8 w-auto fill-current text-gray-800" />
<h1 class="text-xl font-semibold text-gray-900">
{{ config('app.name', 'Knowledge Base') }}