Skip to content

[Uri] Add methods for urlpath/virtualpath manipulation #29736

Closed

Description

@davidfowl

This is coming up while people are porting their ASP.NET application to ASP.NET Core because there was a general purpose utility that was the moral equivalent of Path for handling what was coined a virtual path basically (the path part of a URI). Here's the existing API surface (in the System.Web namespace):

public static class VirtualPathUtility
{
    public static string AppendTrailingSlash(string virtualPath);
    public static string GetDirectory(string virtualPath);
    public static string GetFileName(string virtualPath);
    public static bool IsAbsolute(string virtualPath);
    public static string MakeRelative(string fromPath, string toPath);
    public static string RemoveTrailingSlash(string virtualPath);
    public static string ToAbsolute(string virtualPath);
    public static string ToAbsolute(string virtualPath, string applicationPath);
    public static string ToAppRelative(string virtualPath, string applicationPath);
}

Activity

  1. changed the title [-]Add methods for url manipulation[/-] [+]Add methods for urlpath/virtualpath manipulation[/+] on Jun 2, 2019
  2. changed the title [-]Add methods for urlpath/virtualpath manipulation[/-] [+][Uri] Add methods for urlpath/virtualpath manipulation[/+] on Jun 5, 2019
  3. davidfowl commented on Oct 8, 2019

    @davidfowl
    MemberAuthor

    @GrabYourPitchforks any comments on these APIs?

  4. karelz commented on Dec 17, 2019

    @karelz
    Member

    Note: Watch for query key case sensitiveness - #31147 and do it right this time.

  5. transferred this issue fromdotnet/corefxon Feb 1, 2020
  6. added this to the 5.0 milestone on Feb 1, 2020
  7. scalablecory commented on Feb 21, 2020

    @scalablecory
    Contributor
  8. modified the milestones: 5.0, Future on May 29, 2020
  9. dotnet-policy-service commented on Nov 28, 2024

    @dotnet-policy-service
    Contributor

    Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process.

    This process is part of our issue cleanup automation.

  10. added
    backlog-cleanup-candidate
    on Nov 28, 2024
  11. dotnet-policy-service commented on Dec 13, 2024

    @dotnet-policy-service
    Contributor

    This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

  12. removed this from the Future milestone on Dec 13, 2024
  13. locked and limited conversation to collaborators on Jan 12, 2025
  14. removed
    backlog-cleanup-candidate
    on Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-suggestionarea-System.Net

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions