Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gatisb opened this issue May 2, 2019 · 0 comments
Assignees

Comments

@gatisb
Copy link
Contributor

gatisb commented May 2, 2019

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants