]> git.localhorst.tv Git - alttp.git/commitdiff
show map name in title/heading
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 17 Jul 2023 14:33:39 +0000 (16:33 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 17 Jul 2023 14:33:39 +0000 (16:33 +0200)
resources/js/components/pages/Map.js

index 3cbd31f6025367f1bb98f3d16f3adc7e8f245cb2..8291ef2e982fc9a544fc8e4c6a4d4c51ad5b843c 100644 (file)
@@ -20,13 +20,13 @@ const Map = () => {
 
        return <Container fluid>
                <Helmet>
-                       <title>{t('map.heading')}</title>
+                       <title>{t('map.heading')} - {t(`map.${activeMap}Long`)}</title>
                        <meta name="description" content={t('map.description')} />
                </Helmet>
                <CanonicalLinks base={`/map/${activeMap}`} />
                <OpenSeadragon ref={container}>
                        <div className="d-flex align-items-start justify-content-between">
-                               <h1>{t('map.heading')}</h1>
+                               <h1>{t('map.heading')} - {t(`map.${activeMap}Long`)}</h1>
                                <Buttons setUWOverlay={setUWOverlay} uwOverlay={uwOverlay} />
                        </div>
                        <div ref={container} style={{ height: '80vh' }} />