WordPress.org

Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#19279 closed defect (bug) (duplicate)

Admin actions redirects to invalid domain with IDN-domains

Reported by: kristofferR Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3
Component: General Keywords:
Focuses: Cc:

Description

I've got an international domain with an Ø in it (lets say it's kjøpting.no) and it works mostly great, except from some truly annoying admin redirects. It redirects to the domain, just without the IDN charachter.

For example, when you try to log in to the admin interface (at kjøpting.no/wp-login.php) it tries to access kjpting.no/wp-admin instead of kjøpting.no/wp-admin. If you add the ø to the URL, you get access.

It's the same for a lot of stuff like after installing plugins. It's possible to work around it by adding the IDN-charachter manually, but it's quite annoying and shouldn't be like this.

Change History (4)

comment:1 knutsp2 years ago

  • Cc knut@… added

comment:2 SergeyBiryukov2 years ago

Make sure WordPress address and Site address on General Settings screen are in Punycode: http://xn--kjpting-r1a.no.

Trying to log in to the admin then leads to kjøpting.no/wp-admin/ as expected.

I can only reproduce this if I type kjøpting.no directly in those fields, which isn't the right thing to do.

comment:3 follow-up: kristofferR2 years ago

Heh, that was the error. It works now.

However - shouldn't the two boxes either just support IDN domains or at least warn about not supporting it?

comment:4 in reply to: ↑ 3 SergeyBiryukov2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Replying to kristofferR:

However - shouldn't the two boxes either just support IDN domains or at least warn about not supporting it?

Usually they're correctly populated in wp_guess_url() during installation.

We can probably convert them after manual changing too, let's focus on that in #10690.

Note: See TracTickets for help on using tickets.