diff --git a/src/sMultisite.php b/src/sMultisite.php index 1facfb0..62c500c 100644 --- a/src/sMultisite.php +++ b/src/sMultisite.php @@ -35,7 +35,7 @@ public function domains(): array } /** - * Get url from route name + * Get url from route name with action id * * @param string $name Route name * @return string @@ -46,7 +46,15 @@ public function route(string $name): string if (evo()->getConfig('friendly_url_suffix', '') != '/') { $route = str_ireplace(evo()->getConfig('friendly_url_suffix', ''), '', route($name)); } - return $route . '/'; + + $a = 0; + $arr = str_split($name, 1); + foreach ($arr as $n) { + $a += ord($n); + } + $a = $a < 999 ? $a + 999 : $a; + + return $route.'?a='.$a; } /**