Skip to content

Commit

Permalink
fix(html) : Add page title for login
Browse files Browse the repository at this point in the history
Fix 2.4.2 for YOURLS#3653
  • Loading branch information
madzinah committed Oct 27, 2023
1 parent 9a8b59d commit 962f23e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/functions-html.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ function yourls_html_head( $context = 'index', $title = '' ) {
$tablesorter = true;
break;

case 'install':
case 'login':
$_title_page = 'Login';
break;

case 'install':
case 'new':
case 'upgrade':
break;
Expand All @@ -75,6 +78,7 @@ function yourls_html_head( $context = 'index', $title = '' ) {

// Page title
$_title = 'YOURLS — Your Own URL Shortener | ' . yourls_link();
$_title = $_title_page ? $_title_page . ' — ' . $_title : $_title;
$title = $title ? $title . " « " . $_title : $_title;
$title = yourls_apply_filter( 'html_title', $title, $context );

Expand Down

0 comments on commit 962f23e

Please sign in to comment.