Skip to content

Commit

Permalink
Set the canonical url correctly (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
l-alexandrov committed Apr 11, 2024
1 parent c3531c9 commit 9d579c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion resources/views/themes/bimbala/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
<meta name="url" content="{{ url('/') }}">
<meta name="facebook-domain-verification" content="i8nvt9l8tdw2jqc1t55cdoq3c6znvi" />
<meta name="msvalidate.01" content="C0A3EBD94A574266297F779F912F41C6" />
<link rel="canonical" href="{{ url('/') }}" />
@if(isset($seo['canonical_url']))
<link rel="canonical" href="{{ $seo['canonical_url'] }}" />
@else
<link rel="canonical" href="{{ url()->current() }}" />
@endif
<link rel="preconnect" href="https://client.crisp.chat">
<link rel="preconnect" href="https://analytics.bimbala.com">

Expand Down
2 changes: 1 addition & 1 deletion wave/src/Http/Controllers/BlogController.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function index(Request $request){
'seo_title' => 'Blog',
'seo_description' => 'Blog',
];
return response()->view('theme::blog.index', compact('posts', 'categories', 'seo', 'schema'))->header('Link', '<'.route('wave.blog').'>; rel="cannonical"');
return response()->view('theme::blog.index', compact('posts', 'categories', 'seo', 'schema'));
}

public function category($slug, Request $request){
Expand Down

0 comments on commit 9d579c4

Please sign in to comment.