Make title more descriptive

This commit is contained in:
Laura Hausmann 2023-06-01 01:54:18 +02:00
parent 2522214a97
commit 41795c11ea
Signed by: zotan
GPG key ID: D044E84C5BE01605
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
@using System.IO @using System.IO
@model IndexModel @model IndexModel
@{ @{
ViewData["Title"] = $"webmusic on .NET {Environment.Version}"; ViewData["Title"] = $"{Model.Displaypath} - webmusic on .NET {Environment.Version}";
} }
@if (Model.Path.Contains("/..")) { @if (Model.Path.Contains("/..")) {
return; return;

View file

@ -2,7 +2,7 @@
@using System.IO @using System.IO
@model IndexModel @model IndexModel
@{ @{
ViewData["Title"] = $"webmusic on .NET {Environment.Version}"; ViewData["Title"] = $"{Model.Path} - webmusic on .NET {Environment.Version}";
} }
@if (Model.Path.Contains("/..")) { @if (Model.Path.Contains("/..")) {
return; return;