Combine two HTTP-scheme URLs or paths. Use for simple and robust concatentation of slash-separated paths, even if part of a full http: URL.

Namespace:  EPiServer
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public static string Combine(
	string s1,
	string s2
)

Parameters

s1
Type: System..::.String
First part, may include scheme, host etc
s2
Type: System..::.String
Second part, may include traling query string, fragment etc

Return Value

The correctly combined paths regardless of if s1 ends or not, or s2 starts or not, with "/"

See Also