(requestPath)
| 291 | // /en/articles/foo -> /en |
| 292 | // /en/enterprise/2.14/user/articles/foo -> /en/enterprise/2.14/user |
| 293 | static getHomepage(requestPath) { |
| 294 | return requestPath.replace(/\/articles.*/, '') |
| 295 | } |
| 296 | |
| 297 | // given a page path, return an array of objects containing hrefs |
| 298 | // for that page in all languages |
nothing calls this directly
no outgoing calls
no test coverage detected