Skip to content

Incorrect session endpoint when RemoteApp option has path segments #133

@ocukrowicz-mtab

Description

@ocukrowicz-mtab

Describe the bug

If RemoteApp url has path segments, for example https://devblogs.microsoft.com/dotnet/, the library removes the path segments when creating request for fetching session.

For example
https://devblogs.microsoft.com/dotnet/ would create https://devblogs.microsoft.com/fallback/adapter/session/ instead of expected https://devblogs.microsoft.com/dotnet/fallback/adapter/session/

To Reproduce

  1. Set RemoteApp to url with path segments
  2. Try to fetch session

Further technical details

The Uri constructor discards path segments from baseUri argument

_client.BaseAddress = new Uri(remoteOptions.RemoteAppUrl, _options.SessionEndpointPath);

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions