{
parent::handle($args);
- $this->showPage();
+ if ($this->notice->is_local == 0) {
+ if (!empty($this->notice->url)) {
+ common_redirect($this->notice->url, 301);
+ } else if (!empty($this->notice->uri) && preg_match('/^https?:/', $this->notice->uri)) {
+ common_redirect($this->notice->uri, 301);
+ }
+ } else {
+ $this->showPage();
+ }
}
-
/**
* Don't show local navigation
*
{
}
-
/**
* Fill the content area of the page
*
$this->elementEnd('ul');
}
-
-
/**
* Don't show page notice
*
{
}
-
/**
* Don't show aside
*
function showAside() {
}
-
/**
* Extra <head> content
*