diff --git a/src/registrar/models/domain.py b/src/registrar/models/domain.py index 542d063ed..70b3ac2e5 100644 --- a/src/registrar/models/domain.py +++ b/src/registrar/models/domain.py @@ -1425,8 +1425,17 @@ class Domain(TimeStampedModel, DomainHelper): logger.info("able to transition to DNS_NEEDED state") def get_state_help_text(self) -> str: - """Returns a str containing additional information about a given state""" - help_text = Domain.State.get_help_text(self.state) + """Returns a str containing additional information about a given state. + Returns custom content for when the domain itself is expired.""" + if not self.is_expired(): + help_text = Domain.State.get_help_text(self.state) + else: + # Given expired is not a physical state, but it is displayed as such, + # We need custom logic to determine this message. + help_text = ( + "This domain has expired, but it is still online. " + "To renew this domain, contact help@get.gov." + ) return help_text def _disclose_fields(self, contact: PublicContact): diff --git a/src/registrar/templates/domain_detail.html b/src/registrar/templates/domain_detail.html index 09fc189e4..fe9062a23 100644 --- a/src/registrar/templates/domain_detail.html +++ b/src/registrar/templates/domain_detail.html @@ -6,7 +6,7 @@