Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Source/TeamFoundation.WebApi/HyperlinkFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,15 @@ public Uri GetIdentityImageUrl(Guid id)

public Uri GetNewWorkItemUrl(string workItemType, bool fullScreen = true)
{
// E.g. https://microsofthealth.visualstudio.com/Health/_queries?witd=Bug&id=1&_a=new&fullScreen=true
// E.g. https://microsofthealth.visualstudio.com/Health/_workitems/create/User%20Story
UriBuilder builder = new UriBuilder(this.BaseUrl);
builder.Path = CombinePath(builder.Path, ProjectName, "_queries");
builder.Path = CombinePath(builder.Path, ProjectName, "_workitems", "create", Uri.EscapeDataString(workItemType));

AddQueryParam(builder, "witd", workItemType);
AddQueryParam(builder, "_a", "new");
if (fullScreen)
{
AddQueryParam(builder, "fullScreen", "true");
}

return builder.Uri;
}

Expand Down