From 41795c11eaecef27cc220ccf71065e0fcdb14003 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Thu, 1 Jun 2023 01:54:18 +0200 Subject: [PATCH] Make title more descriptive --- Pages/Index.cshtml | 2 +- Pages/lyrics.cshtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml index 9316d8d..94fd1c9 100644 --- a/Pages/Index.cshtml +++ b/Pages/Index.cshtml @@ -2,7 +2,7 @@ @using System.IO @model IndexModel @{ - ViewData["Title"] = $"webmusic on .NET {Environment.Version}"; + ViewData["Title"] = $"{Model.Displaypath} - webmusic on .NET {Environment.Version}"; } @if (Model.Path.Contains("/..")) { return; diff --git a/Pages/lyrics.cshtml b/Pages/lyrics.cshtml index 75392f3..710ce79 100644 --- a/Pages/lyrics.cshtml +++ b/Pages/lyrics.cshtml @@ -2,7 +2,7 @@ @using System.IO @model IndexModel @{ - ViewData["Title"] = $"webmusic on .NET {Environment.Version}"; + ViewData["Title"] = $"{Model.Path} - webmusic on .NET {Environment.Version}"; } @if (Model.Path.Contains("/..")) { return;