Make OpenGraph configurable, and fix canonical URL to include mid

This commit is contained in:
Kijin Sung 2016-05-09 11:51:11 +09:00
parent da1b69c6b7
commit f25e685209
10 changed files with 83 additions and 8 deletions

View file

@ -338,6 +338,12 @@ class boardView extends board
// setup the document oject on context
$oDocument->add('module_srl', $this->module_srl);
Context::set('oDocument', $oDocument);
// set canonical URL
if ($oDocument->document_srl)
{
Context::setCanonicalURL($oDocument->getPermanentUrl());
}
/**
* add javascript filters