Skip to content

Commit 650db5d

Browse files
committed
Offline page doesn't generate route
1 parent 00993c3 commit 650db5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Providers/RouteServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function map(Router $router)
3434
if ($page = TypiCMS::getPageLinkedToModule('places')) {
3535
$options = $page->private ? ['middleware' => 'auth'] : [];
3636
foreach (config('translatable.locales') as $lang) {
37-
if ($uri = $page->uri($lang)) {
37+
if ($page->translate($lang)->status && $uri = $page->uri($lang)) {
3838
$router->get($uri, $options + ['as' => $lang.'.places', 'uses' => 'PublicController@index']);
3939
$router->get($uri.'/{slug}', $options + ['as' => $lang.'.places.slug', 'uses' => 'PublicController@show']);
4040
}

0 commit comments

Comments
 (0)