Skip to content

Commit 2765d86

Browse files
committed
Pages - when slug is url, dont generate site url
1 parent 57dcd87 commit 2765d86

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

app/Models/Traits/PageHelper.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ static public function whereParentIdORM(
7373
*/
7474
public function updateUrl()
7575
{
76+
// if slug is url
77+
if(is_slug_url($this->slug)) {
78+
$this->url = $this->slug;
79+
return $this;
80+
}
81+
7682
$this->url = '';
7783
$this->generateCompleteUrl($this);
7884
$this->url = $this->url;

0 commit comments

Comments
 (0)