Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

shay1591's avatar

Struggling with Custom Page Titles in Inertia SSR

Hello

Im using inertia ssr and im having issues when trying to set custom page titles , I use the inertia Head helper to define a title like so :

 <Head title="Privacy Policy">  </Head>

but it seems like the title created by createInertiaApp is not the same title that gets put in the page source, in my createInertiaApp I just return the title without anything appended like so:

createInertiaApp({ title: (title) => {

        return `${title} `;
    }, 

and this shows the correct page title in the tab but when I go to view page source it always appens a '- appname'. So for example here I would see 'Privacy Policy' in the tab but in the view page source I will see 'Privacy Policy - appname' I dont know what causes this or how to change this?

Thanks for your help

0 likes
3 replies
JussiMannisto's avatar
Level 50

Have you re-built the assets and restarted the renderer process (artisan inertia:start-ssr) after removing the app name suffix?

Also, did you remove it from both app.jsx/tsx and ssr.jsx/tsx?

1 like

Please or to participate in this conversation.