Skip to content

Commit da1fd47

Browse files
authored
Merge pull request #393 from cakephp/book-urls
Update book URLs
2 parents 38b232c + a42d473 commit da1fd47

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
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');
96-
$routes->redirect('/documentation', 'http://book.cakephp.org/5');
95+
$routes->redirect('/pages/documentation', 'http://book.cakephp.org/5.x/');
96+
$routes->redirect('/documentation', 'http://book.cakephp.org/5.x/');
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
],
174174
'documentation' => [
175175
'book' => [
176-
'url' => 'https://book.cakephp.org/5',
176+
'url' => 'https://book.cakephp.org/5.x/',
177177
'title' => __('Book'),
178178
],
179179
'api' => [
@@ -190,7 +190,7 @@
190190
'title' => __('Videos'),
191191
],
192192
'security' => [
193-
'url' => 'https://book.cakephp.org/5/en/contributing/tickets.html#reporting-security-issues',
193+
'url' => 'https://book.cakephp.org/5.x/contributing/tickets.html#reporting-security-issues',
194194
'title' => __('Reporting Security Issues'),
195195
],
196196
'privacy' => [

templates/Changelogs/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
__('Contributing to CakePHP is easy.'),
8383
__(
8484
'Checkout the {0} for how you can get started contributing to CakePHP.',
85-
'<a href="https://book.cakephp.org/4/en/contributing/code.html">' . __('guide on contributing') . '</a>'
85+
'<a href="https://book.cakephp.org/5.x/contributing/code.html">' . __('guide on contributing') . '</a>'
8686
)
8787
)) ?>
8888
</p>

templates/element/get-involved/get-involved.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
$this->Html->link(__('Cookbook'), Configure::read('Site.menu.items.documentation.book.url')),
187187
$this->Html->link(__('source code'), 'https://github.com/cakephp/cakephp', ['target' => '_blank']),
188188
$this->Html->link(__('GitHub'), 'https://github.com/cakephp/docs', ['target' => '_blank']),
189-
$this->Html->link(__('here'), 'https://book.cakephp.org/4/en/contributing/documentation.html')
189+
$this->Html->link(__('here'), 'https://book.cakephp.org/5.x/contributing/documentation.html')
190190
)?></p>
191191
</div>
192192

templates/element/home/cake.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
</div>
1515
<div class="col-sm-12 col-md-12 col-lg-12">
1616
<div class="cta-home">
17-
<a href="https://book.cakephp.org/5/en/installation.html" class="btn btn-home">
17+
<a href="https://book.cakephp.org/5.x/installation.html" class="btn btn-home">
1818
<span class="glyphicon glyphicon-download-alt" aria-hidden="true"></span>
1919
<?= __('DOWNLOAD') ?>
2020
</a>

templates/element/home/whats_new.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<div class="mb50 mt50">
1313
<h2><?= __("What's new in 5.3") ?></h2>
1414
<p><?= __("The migration guide has a complete list of {0}. We recommend you give that page a read when upgrading. A few highlights from 5.3 are:",
15-
$this->Html->link(__("what's new in 5.3"), 'https://book.cakephp.org/5/en/appendices/5-3-migration-guide.html')
15+
$this->Html->link(__("what's new in 5.3"), 'https://book.cakephp.org/5.x/appendices/5-3-migration-guide.html')
1616
) ?>
1717
</p>
1818
<ul>
@@ -25,7 +25,7 @@
2525
<li><?= __('Added new fluent builders for defining the "sortableFields" data of your pagination operations.') ?>
2626
</ul>
2727
<div>
28-
<a href="https://book.cakephp.org/5/en/appendices/5-3-migration-guide.html" class="btn btn-home">Learn more</a>
28+
<a href="https://book.cakephp.org/5.x/appendices/5-3-migration-guide.html" class="btn btn-home">Learn more</a>
2929
</div>
3030
</div>
3131
</div>

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/4",
15+
"https://book.cakephp.org/5.x/",
1616
['escape' => false]
1717
);?>
1818
</div>

0 commit comments

Comments
 (0)