(href)
| 19 | // Remove the language from the given HREF |
| 20 | // /en/articles/foo -> /articles/foo |
| 21 | export function getPathWithoutLanguage(href) { |
| 22 | return slash(href.replace(patterns.hasLanguageCode, '/')) |
| 23 | } |
| 24 | |
| 25 | // Remove the version segment from the path |
| 26 | export function getPathWithoutVersion(href) { |
no outgoing calls
no test coverage detected