Skip to content
Discussion options

You must be logged in to vote

We have an HttpFeature holding the OriginalPathBase and OriginalPath that you can retrieve from the current HttpContext, e.g. from a razor view.

@using OrchardCore.Environment.Shell

var shellFeature = Context.Features.Get<ShellContextFeature>();

var pathBase = shellFeature.OriginalPathBase;
var path = shellFeature.OriginalPath;
var fullPath = pathBase + path;

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@KP-WhatEver
Comment options

Comment options

You must be logged in to vote
1 reply
@KP-WhatEver
Comment options

Answer selected by KP-WhatEver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants