Skip to content

Commit

Permalink
Fixed bad domain lookup
Browse files Browse the repository at this point in the history
Inverted if statement shouldn't be inverted 🤦‍♂️
  • Loading branch information
abjerner committed Sep 15, 2022
1 parent 5161568 commit d45b010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Limbo.Umbraco.Spa/SpaRequestHelper.Flow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected virtual void UpdateArguments(SpaRequest request) {
if (string.IsNullOrWhiteSpace(request.Arguments.HostName)) return;

// Try get siteId from the domain
if (!request.Arguments.IsDefaultPort && TryGetDomain(request.Arguments.HostName, out IDomain domain)) {
if (request.Arguments.IsDefaultPort && TryGetDomain(request.Arguments.HostName, out IDomain domain)) {
// TODO: Should we set "request.Domain" here?
request.Arguments.SiteId = domain.RootContentId ?? -1;
}
Expand Down

0 comments on commit d45b010

Please sign in to comment.