Skip to content

new QueryStringBuilder on page that has no template thus url returned by UrlResolver is null #47

@gatisb

Description

@gatisb

constructors:
public QueryStringBuilder(ContentReference contentLink, bool includeHost = false)
and
public QueryStringBuilder(ContentReference contentLink, UrlResolver urlResolver, bool includeHost = false)
fail with null pointer exception if contentLink has no template.

However if GetFriendlyUrl is used that returns string.Empty and:
public QueryStringBuilder(string url)
works somewhat fine

Expect the same behavior from both, either both fail or both succeed
new QueryStringBuilder(contentLink.GetFriendlyUrl())
new QueryStringBuilder(contentLink)

Metadata

Metadata

Assignees

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