diff options
| author | horus | 2020-09-22 23:57:22 +0200 |
|---|---|---|
| committer | horus | 2020-09-22 23:57:22 +0200 |
| commit | 29df7d0dd3dbe7fd71d3039d9a4bec522291d1ae (patch) | |
| tree | 84ae3c6491c4529e4d3648c62cd87772f8196f86 | |
| parent | 285351b3103bb156bb3f7cb57221d2f09fdf07e0 (diff) | |
| download | curious-29df7d0dd3dbe7fd71d3039d9a4bec522291d1ae.tar.gz | |
add hint and redirect
| -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'); |
