Skip to content

Commit

Permalink
Merge pull request #1 from Juniorbuka/patch-1
Browse files Browse the repository at this point in the history
Update sMultisiteController.php
  • Loading branch information
Seiger authored Aug 9, 2024
2 parents f7db5ed + b79823f commit 246f34e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Controllers/sMultisiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ private function validateKey($string = '', $id = 0): string
{
if (trim($string)) {
$alias = explode('.', $string);
array_pop($string);
// array_pop($string);
array_pop($alias); // Here we are passing the $alias array, not the $string
$alias = Str::slug(trim(implode('', $alias)));
} else {
$alias = $id;
Expand Down

0 comments on commit 246f34e

Please sign in to comment.