New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

SEO-Pro: Title for Routes

Jürgen Schadek April 2, 2021 by Jürgen Schadek

Hi Statamic-Forum,

how can I change the page title for a statamic route?

In my routes/web.php I set up a route for search results:

Route::statamic('weblog/search', '', [
    'title' => 'Suchergebnisse',

In my resources/views/layout.antlers.html I added

{{ seo_pro:meta }}

The result is

<title>Startseite | site_name</title>

How can I change "Startseite" (Startpage or Homepage in English) to "Suchergebnisse" (Search Results in English) in the title tag? Why SEO Pro ignores the title in the route?

>>>>>>> Unanswered <<<<<<<
0 Replies
1 Follower