fix id-first deep links for videoGpt1 seo
This commit is contained in:
@@ -82,7 +82,9 @@ class VideoService
|
||||
$strTmpCode = $this->SiteContext->TemplatesModel['t_code'];
|
||||
|
||||
if ($strTmpCode == 'videoGpt1') {
|
||||
return $this->SiteContext->UrlBuilder->detail($strPinYin, $intVId);
|
||||
// videoGpt1 runtime resolves detail data by v_id.
|
||||
// Use id-first urls to avoid stale slug drift creating dead deep links.
|
||||
return $this->SiteContext->UrlBuilder->detail('', $intVId);
|
||||
} else {
|
||||
$strKey = 'VIDEO_INFO_URL';
|
||||
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
|
||||
@@ -106,7 +108,7 @@ class VideoService
|
||||
$strTmpCode = $this->SiteContext->TemplatesModel['t_code'];
|
||||
|
||||
if ($strTmpCode == 'videoGpt1') {
|
||||
return $this->SiteContext->UrlBuilder->detailForge($strPinYin, $intVId, $intVForgeId);
|
||||
return $this->SiteContext->UrlBuilder->detailForge('', $intVId, $intVForgeId);
|
||||
} else {
|
||||
$strKey = 'FORGE_VIDEO_INFO_URL';
|
||||
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
|
||||
@@ -132,7 +134,7 @@ class VideoService
|
||||
$strTmpCode = $this->SiteContext->TemplatesModel['t_code'];
|
||||
|
||||
if ($strTmpCode == 'videoGpt1') {
|
||||
return $this->SiteContext->UrlBuilder->play($strPinYin, $intVId, $strPlayType, $intPlayIndex);
|
||||
return $this->SiteContext->UrlBuilder->play('', $intVId, $strPlayType, $intPlayIndex);
|
||||
} else {
|
||||
$strKey = 'VIDEO_PLAY_URL';
|
||||
$strUrl = $this->SiteContext->DomainModel->getFomartUrl($strKey, [
|
||||
|
||||
Reference in New Issue
Block a user