Skip to content

Commit 5ece9aa

Browse files
authored
Merge pull request #394 from cakephp/book-urls
Remove version suffix in book URL where not needed
2 parents da1fd47 + 5cc0167 commit 5ece9aa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

config/routes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@
9292
$routes->connect('/business-solutions', ['controller' => 'Pages', 'action' => 'display', 'business-solutions']);
9393
$routes->connect('/roadtrip', ['controller' => 'Pages', 'action' => 'display', 'road_trip']);
9494

95-
$routes->redirect('/pages/documentation', 'http://book.cakephp.org/5.x/');
96-
$routes->redirect('/documentation', 'http://book.cakephp.org/5.x/');
95+
$routes->redirect('/pages/documentation', 'http://book.cakephp.org');
96+
$routes->redirect('/documentation', 'http://book.cakephp.org');
9797
$routes->connect('/changelogs', ['controller' => 'Changelogs', 'action' => 'index']);
9898
$routes->connect('/changelogs/*', ['controller' => 'Changelogs', 'action' => 'view']);
9999
$routes->redirect('/development', ['controller' => 'Pages', 'action' => 'display', 'business-solutions']);

config/site.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
],
174174
'documentation' => [
175175
'book' => [
176-
'url' => 'https://book.cakephp.org/5.x/',
176+
'url' => 'https://book.cakephp.org',
177177
'title' => __('Book'),
178178
],
179179
'api' => [

templates/element/layout/default/menu/top_bar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
$this->Html->tag('strong', __('Cookbook')),
1313
$this->Html->tag('span', 'B', ['class' => 'glyph_range icon-submenu'])
1414
)),
15-
"https://book.cakephp.org/5.x/",
15+
"https://book.cakephp.org/",
1616
['escape' => false]
1717
);?>
1818
</div>

0 commit comments

Comments
 (0)