mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
canonical URL이 출력되지 않는 문제 수정
This commit is contained in:
parent
cbd66462c7
commit
4520a6a2a4
2 changed files with 11 additions and 1 deletions
|
|
@ -2721,6 +2721,16 @@ class Context
|
|||
{
|
||||
self::$_instance->canonical_url = escape($url, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get canonical URL
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function getCanonicalURL()
|
||||
{
|
||||
return self::$_instance->canonical_url;
|
||||
}
|
||||
}
|
||||
/* End of file Context.class.php */
|
||||
/* Location: ./classes/context/Context.class.php */
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
<link rel="alternate" type="application/atom+xml" title="Site Atom" href="{$general_atom_url}" cond="$general_rss_url" />
|
||||
|
||||
<!-- ICONS AND OTHER LINKS -->
|
||||
<link cond="$canonical_url" rel="canonical" href="{$canonical_url}" />
|
||||
<link cond="Context::getCanonicalURL()" rel="canonical" href="{Context::getCanonicalURL()}" />
|
||||
<link cond="$favicon_url" rel="shortcut icon" href="{$favicon_url}" />
|
||||
<link cond="$mobicon_url" rel="apple-touch-icon" href="{$mobicon_url}" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue