Skip to content

Add Support for HttpContext.RewritePath of 2 params and 4 params #315

@Clounea

Description

@Clounea

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions