Your question has been submitted and is awaiting moderation.
Thank you for reporting this content, moderators have been notified of your submission.
In DNN 7, adding portal alias programmatically via PortalController.AddPortalAlias will make the new alias the primary alias for site.
Is there a better way to do it other than calling UpdatePortalSetting to reapply the default primary alias?