diff options
| -rw-r--r-- | resources/views/topicpopular.blade.php | 6 | ||||
| -rw-r--r-- | routes/web.php | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/resources/views/topicpopular.blade.php b/resources/views/topicpopular.blade.php index e4d2b18..81c37d4 100644 --- a/resources/views/topicpopular.blade.php +++ b/resources/views/topicpopular.blade.php @@ -20,6 +20,12 @@ html { <p class="card-text"> <strong>Hint:</strong> <em>You are looking at popular topics. If you are interested in the most popular articles instead, <a href="{{ route('popular') }}" alt="popular articles">click here instead</a>.</em> </p> + <p class="card-text"> + <strong>Hint:</strong> + <em> + For a list of all topics please <a href="{{ route('topic_index') }}" alt="all topics">click here</a>. + </em> + </p> </div> </div> <div style="margin-bottom: 20px"></div> diff --git a/routes/web.php b/routes/web.php index 1930938..0693118 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,7 +15,8 @@ use Illuminate\Support\Facades\Route; Route::get('/', 'IndexController@index')->name('index'); Route::get('/topic/{topic}', 'IndexController@topic')->name('topic')->where('topic', '(.+)'); -Route::get('/topic/', 'IndexController@topicindex')->name('topic_index'); +Route::get('/topics/', 'IndexController@topicindex')->name('topic_index'); +Route::get('/topic/', function() { return redirect()->route('topic_index'); })->name('topic_redir'); Route::get('/new', 'IndexController@new')->name('new'); Route::get('/search', 'IndexController@search')->name('search'); Route::get('/popular/topics', 'IndexController@populartopics')->name('popular_topics'); |
