Skip to content

Commit f720e27

Browse files
Merge pull request #397 from EricGusmao:fix-routing-section-reference
Fix fragment identifier in routing meta links for Generating URLs Section
2 parents b45b1f3 + 2f121d9 commit f720e27

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

resources/js/Components/H2.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
function kebabCase(str) {
22
return str
3+
.replace('URL', 'Url')
34
.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)
45
.join('-')
56
.toLowerCase()

resources/js/Pages/routing.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const meta = {
66
links: [
77
{ url: '#top', name: 'Defining routes' },
88
{ url: '#shorthand-routes', name: 'Shorthand routes' },
9-
{ url: '#generating-routes', name: 'Generating URLs' },
9+
{ url: '#generating-urls', name: 'Generating URLs' },
1010
],
1111
}
1212

0 commit comments

Comments
 (0)