Skip to content

Commit

Permalink
Merge pull request #13 from vonsogt/vonsogt-patch-1
Browse files Browse the repository at this point in the history
Fix errors and bugs
  • Loading branch information
sdebacker authored Jun 27, 2022
2 parents 81b3408 + 7922bf7 commit a8d7018
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion resources/views/public/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

</div>

<div id="map" class="map" data-url="/{{ $lang }}/places-json" data-button-label="@lang('Read more')"></div>
<div id="map" class="map" data-url="/{{ $page->uri($lang) }}/places-json" data-button-label="@lang('Read more')"></div>

<div class="page-body-container">

Expand Down
4 changes: 2 additions & 2 deletions resources/views/public/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
</header>
<div class="place-body">
@include('places::public._json-ld', ['place' => $model])
@empty(!$model->latitude, $model->longitude)
<div class="place-map" id="map" data-url="/{{ $lang }}/places-json/{{ $model->id }}" style="height: 500px"></div>
@empty(!$model->latitude && $model->longitude)
<div class="place-map" id="map" data-url="/{{ $page->uri($lang) }}/places-json/{{ $model->id }}" style="height: 500px"></div>
@endempty
@empty(!$model->image)
<picture class="place-picture">
Expand Down
4 changes: 2 additions & 2 deletions src/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function map(): void
if ($page->isPublished($lang) && $uri = $page->uri($lang)) {
Route::middleware($middleware)->prefix($uri)->name($lang.'::')->group(function (Router $router) {
$router->get('/', [PublicController::class, 'index'])->name('index-places');
$router->get('places-json', [PublicController::class, 'json']);
$router->get('places-json/{id}', [PublicController::class, 'jsonItem']);
$router->get('places-json', [PublicController::class, 'json'])->name('places-json');
$router->get('places-json/{id}', [PublicController::class, 'jsonItem'])->name('places-json-item');
$router->get('{slug}', [PublicController::class, 'show'])->name('place');
});
}
Expand Down

0 comments on commit a8d7018

Please sign in to comment.