Copied to clipboard

Flag this post as spam?

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


  • Romeo Cadaoas 33 posts 110 karma points
    Sep 27, 2017 @ 05:44
    Romeo Cadaoas
    0

    Get content by link to document

    Hi, I need to return the right content based on the request origin returned by a third party api calling my action controller.

    I have 2 URL 1. https://domain.com/ or 2. https://staff.domain.com/

    These two domains are on a different home node (Top level node).

    Based on this I will redirect the user to the right content where she/he came from.

    I tried this but only seems to accept the path not the whole url

    UmbracoContext.Current.ContentCache.GetByRoute("https://staff.domain.com/")
    
Please Sign in or register to post replies

Write your reply to:

Draft