Fix punycoded local domains not being prettified in initial state (#21440)
This commit is contained in:
parent
059d64a59e
commit
1e95fa3df5
|
@ -16,7 +16,7 @@ class InitialStateSerializer < ActiveModel::Serializer
|
||||||
streaming_api_base_url: Rails.configuration.x.streaming_api_base_url,
|
streaming_api_base_url: Rails.configuration.x.streaming_api_base_url,
|
||||||
access_token: object.token,
|
access_token: object.token,
|
||||||
locale: I18n.locale,
|
locale: I18n.locale,
|
||||||
domain: instance_presenter.domain,
|
domain: Addressable::IDNA.to_unicode(instance_presenter.domain),
|
||||||
title: instance_presenter.title,
|
title: instance_presenter.title,
|
||||||
admin: object.admin&.id&.to_s,
|
admin: object.admin&.id&.to_s,
|
||||||
search_enabled: Chewy.enabled?,
|
search_enabled: Chewy.enabled?,
|
||||||
|
|
Loading…
Reference in a new issue