Skip to content

Commit 357a806

Browse files
committed
remove unnecessary condition in router on 404 page
1 parent 0dea1e4 commit 357a806

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/partials/article-404.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ If you typed the URL of this page manually, please double check that you entered
4242
returnLink.href = returnTo.url
4343
returnLink.innerText =
4444
'start page for the ' + returnTo.title + ' ' +
45-
((returnTo.version || 'master' !== 'master') ? returnTo.version + ' ' : '') + 'documentation'
45+
(returnTo.version ? returnTo.version + ' ' : '') +
46+
'documentation'
4647
}
4748
})(window.location.pathname, document.getElementById('return-link'))
4849
</script>

0 commit comments

Comments
 (0)