mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
remove lang from page title in wiki article
This commit is contained in:
parent
ccae47979f
commit
4c7293f8c2
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ module.exports = WikiController =
|
|||
WikiController._getPageContent lngPage, (error, pageData) ->
|
||||
return next(error) if error?
|
||||
if pageData.content?.length > 280
|
||||
if _.include(other_lngs, req.lng)
|
||||
pageData.title = pageData.title.slice(0, pageData.title.length - (req.lng.length+1) )
|
||||
WikiController._renderPage(pageData, contents, res)
|
||||
else
|
||||
WikiController._getPageContent page, (error, pageData) ->
|
||||
|
|
Loading…
Reference in a new issue