mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-09 14:56:13 -06:00
#74 Improvements of SEO link structure like Vebze (improvments)
This commit is contained in:
parent
d5ea3ab18b
commit
8475e9d7ba
@ -161,6 +161,13 @@ class AdvsController extends PublicController
|
|||||||
if ($categoryId) {
|
if ($categoryId) {
|
||||||
$param['cat'] = $categoryId->id;
|
$param['cat'] = $categoryId->id;
|
||||||
}
|
}
|
||||||
|
} elseif (isset($param['cat']) && !empty($param['cat'])) {
|
||||||
|
$categoryId = $this->category_repository->find($param['cat']);
|
||||||
|
return redirect($this->fullLink(
|
||||||
|
$param,
|
||||||
|
route('adv_list_seo', [$categoryId->slug]),
|
||||||
|
array()
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Search by city slug
|
// Search by city slug
|
||||||
@ -174,7 +181,6 @@ class AdvsController extends PublicController
|
|||||||
));
|
));
|
||||||
} elseif (isset($param['city']) && !empty($param['city'][0]) && strpos($param['city'][0], ',') === false) {
|
} elseif (isset($param['city']) && !empty($param['city'][0]) && strpos($param['city'][0], ',') === false) {
|
||||||
$cityId = $this->cityRepository->find($param['city'][0]);
|
$cityId = $this->cityRepository->find($param['city'][0]);
|
||||||
$param['city'] = [$cityId->id];
|
|
||||||
if ($city !== $cityId->slug) {
|
if ($city !== $cityId->slug) {
|
||||||
return redirect($this->fullLink(
|
return redirect($this->fullLink(
|
||||||
$param,
|
$param,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user