Skip to content

Commit f12264d

Browse files
author
Jonas Siewertsen
committed
Fix routes
1 parent fd1d03b commit f12264d

5 files changed

Lines changed: 3 additions & 40 deletions

File tree

resources/views/documentation/show.blade.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

resources/views/videos/index.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</div>
1414

1515
@forelse ($videos as $video)
16-
<a href="/{{ config('statamic.cp.route') }}/how-to/video/{{ $video->slug() }}" class="w-full lg:w-1/2 p-3 border-b md:flex hover:bg-grey-10">
16+
<a href="{{ route('statamic.cp.howToAddon.show', $video->slug() ) }}" class="w-full lg:w-1/2 p-3 border-b md:flex hover:bg-grey-10">
1717
<div class="h-8 w-8 mr-2 hidden md:block text-blue">
1818
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1919
<path d="M4.435.913l8.936 3.573a1 1 0 0 1 .629.928v16.848a1 1 0 0 1-1.371.927l-8-3.2A1 1 0 0 1 4 19.062V1.739a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-2"

resources/views/videos/show.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div class="flex flex-wrap card">
99

1010
<div class="p-3 -mt-2 w-full">
11-
<a href="{{ route('statamic.cp.howToAddon.videos.index') }}" class="block mb-1">< {{ __('howToAddon::general.back') }}</a>
11+
<a href="{{ route('statamic.cp.howToAddon.index') }}" class="block mb-1">< {{ __('howToAddon::general.back') }}</a>
1212
<h1 class="mb-2">{{ $video->title }}</h1>
1313

1414
<video class="w-full" controls>

resources/views/widgets/howToVideos.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</div>
77

88
@forelse ($videos as $video)
9-
<a href="/{{ config('statamic.cp.route') }}/how-to-addon/video/{{ $video->slug() }}" class="w-full lg:w-1/2 p-3 border-b md:flex hover:bg-grey-10">
9+
<a href="{{ route('statamic.cp.howToAddon.show', $video->slug() ) }}" class="w-full lg:w-1/2 p-3 border-b md:flex hover:bg-grey-10">
1010
<div class="h-8 w-8 mr-2 hidden md:block text-blue">
1111
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
1212
<path d="M4.435.913l8.936 3.573a1 1 0 0 1 .629.928v16.848a1 1 0 0 1-1.371.927l-8-3.2A1 1 0 0 1 4 19.062V1.739a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-2"

src/Http/Controllers/DocumentationController.php

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)