Skip to content

Commit

Permalink
Issue on getting pageid in the url fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
rbbrioso28 committed Jan 15, 2021
1 parent 1049ad5 commit 4f5382b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Listener/MelisFrontSiteConfigListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ public function onLoadModulesPost(ModuleEvent $e)
$pageId = null;
//get page id
preg_match('/(\/id\/)(\D*)(\d+)/i', $uri, $matches);

if (empty($matches))
return;

if(empty($matches[3])){
$pageIdInfo = explode('/', $matches[0]);
$pageId = $pageIdInfo[2];
Expand Down

0 comments on commit 4f5382b

Please sign in to comment.