mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Merge pull request #6060 from mkinawy/issue/6052
[Fixes #6052] Href should be no-op when applied on absolute url
This commit is contained in:
commit
db1efab940
@ -195,6 +195,11 @@ namespace Orchard.Mvc.ViewEngines.Razor {
|
||||
|
||||
private string _tenantPrefix;
|
||||
public override string Href(string path, params object[] pathParts) {
|
||||
if (path.StartsWith("http://", StringComparison.OrdinalIgnoreCase)
|
||||
|| path.StartsWith("https://", StringComparison.OrdinalIgnoreCase)) {
|
||||
return path;
|
||||
}
|
||||
|
||||
if (_tenantPrefix == null) {
|
||||
_tenantPrefix = WorkContext.Resolve<ShellSettings>().RequestUrlPrefix ?? "";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user