Skip to content

Commit c86b6f4

Browse files
committed
uri() method replaced by url()
1 parent 3c0d5b1 commit c86b6f4

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/resources/views/public/_itemlist-json-ld.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"@type":"ListItem",
99
"position":{{ $loop->index+1 }},
10-
"url":"{{ $item->uri() }}"
10+
"url":"{{ $item->url() }}"
1111
}@if (!$loop->last),@endif
1212
@endforeach
1313
]

src/resources/views/public/_json-ld.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"mainEntityOfPage": {
1212
"@type": "WebPage",
13-
"@id": "{{ $thing->uri() }}"
13+
"@id": "{{ $thing->url() }}"
1414
}
1515
}
1616
</script>

src/resources/views/public/_list-item.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<li class="thing-list-item">
2-
<a class="thing-list-item-link" href="{{ $thing->uri() }}" title="{{ $thing->title }}">
2+
<a class="thing-list-item-link" href="{{ $thing->url() }}" title="{{ $thing->title }}">
33
<div class="thing-list-item-title">{{ $thing->title }}</div>
44
<div class="thing-list-item-image-wrapper">
55
<img class="thing-list-item-image" src="{{ $thing->present()->image(800, 600) }}" width="400" height="300" alt="{{ $thing->image?->alt_attribute }}" />

src/resources/views/public/_list-results.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<ul class="thing-list-results-list">
22
@foreach ($items as $thing)
33
<li class="thing-list-results-item">
4-
<a class="thing-list-results-item-link" href="{{ $thing->uri() }}" title="{{ $thing->title }}">
4+
<a class="thing-list-results-item-link" href="{{ $thing->url() }}" title="{{ $thing->title }}">
55
<span class="thing-list-results-item-title">{{ $thing->title }}</span>
66
</a>
77
</li>

src/routes/things.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
if ($page = getPageLinkedToModule('things')) {
1515
$middleware = $page->private ? ['public', 'auth'] : ['public'];
1616
foreach (locales() as $lang) {
17-
if ($page->isPublished($lang) && $uri = $page->uri($lang)) {
18-
Route::middleware($middleware)->prefix($uri)->name($lang . '::')->group(function (Router $router) {
17+
if ($page->isPublished($lang) && $path = $page->path($lang)) {
18+
Route::middleware($middleware)->prefix($path)->name($lang . '::')->group(function (Router $router) {
1919
$router->get('/', [PublicController::class, 'index'])->name('index-things');
2020
$router->get('{slug}', [PublicController::class, 'show'])->name('thing');
2121
});

0 commit comments

Comments
 (0)