Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 877dff6

Browse files
SuthesanSuthesan
authored andcommitted
remove double slash on href
1 parent ca3f92d commit 877dff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ module.exports = {
112112
const replaced_locale = locale.replace('_', '-')
113113
const is_default = ['en', 'x-default'].includes(locale)
114114
const href_locale = is_default ? '' : `/${replaced_locale}`
115-
const href = `${site_url}/${href_locale}${current_page}`
115+
const href = `${site_url}${href_locale}${current_page}`
116116
return { lang: replaced_locale, url: href }
117117
}
118118
})

0 commit comments

Comments
 (0)