Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • andrew shearer 407 posts 514 karma points
    Dec 10, 2019 @ 02:15
    andrew shearer
    0

    umbraco 8: set language within IContentFinder

    Hi there

    Can anyone provide some insight into which method I can use to set the language/culture in an IContentFinder? More specifically, I have an umbraco site with two variants (English and Chinese) and would like a 404ContentFinder (IContentLastChanceFinder) to find my 404 content page (iPublishedContent) and additionally set the language according to the url

    i.e.

    /en/this/page/is/missing/ = should set English language/culture

    /cn/this/page/is/missing/ = should set Chinese language/culture

    The code sample in the “NotFoundHandlers” section on https://our.umbraco.com/documentation/reference/routing/request-pipeline/IContentFinder still looks to be for umbraco 7 and doesn’t work for umbraco 8 1:1 multilingual site.

    Thanks, Andrew

Please Sign in or register to post replies

Write your reply to:

Draft