-
Notifications
You must be signed in to change notification settings - Fork 68
Closed
Description
Summary
The HttpContext in adapter only supports RewritePath(String). But there is also usage of RewritePath(String, Boolean) and RewritePath(String, String, String, Boolean).
Motivation and goals
RewritePath(String, Boolean) and RewritePath(String, String, String, Boolean) are used in SharePoint Online. But they are not supported in the adapter. I use the code below instead.
// case1: 2 params
// old one
context.RewritePath( newFilePath + originalPathInfo, true);
// my workaround
context.RewritePath(newFilePath + originalPathInfo)
// case2: 4 params
// old one
context.RewritePath( newFilePath, originalPathInfo, originalQueryString, true);
// my workaround
context.RewritePath(newFilePath + originalPathInfo + "?" + originalQueryString)
I wonder if there is plan to support the API.
In scope
Add support of RewritePath(String, Boolean) and RewritePath(String, String, String, Boolean)
Examples
context.RewritePath( newFilePath + originalPathInfo, true);
context.RewritePath( newFilePath, originalPathInfo, originalQueryString, true);
Metadata
Metadata
Assignees
Labels
No labels