Make WordPress Core

Opened 10 months ago

Last modified 3 months ago

#57525 new defect (bug)

Twenty Twenty-Three: Incorrect home link

Reported by: website-rob's profile Website Rob Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.1
Component: Bundled Theme Keywords: needs-testing
Focuses: performance Cc:

Description

I've noticed that Twenty Twenty-Three Theme does not add a trailing / onto the Home page link when used in a sub-directory. Could also be happening in a top level situation although I've not tested.

example.com/test -instead of- example.com/test/

This cause a 301 redirect and slows down page load.

Not a big deal but then again, the fix is quick and easy.

Change History (5)

#1 @poena
9 months ago

  • Keywords needs-testing added

#2 @poena
9 months ago

Hi! Thank you for the report.

Are you able to add more details about how to reproduce this issue?
I am unsure of if by "home page link" you mean the link in the WordPress admin > General settings WordPress Address (URL) or Site Address (URL), or if you meant a link used in one of the blocks?

Like the site title, custom logo, or the navigation block Home link inner block?

Last edited 9 months ago by poena (previous) (diff)

#3 @Website Rob
9 months ago

<p class="wp-block-site-title"><a href="https://domain.com/wp" target="_self" rel="home" aria-current="page">Domain Website</a></p>

Yes, this link could be considered as WordPress Address (URL) or Site Address (URL) as found in General Settings. This is the only such link being used in the header. Not using tagline or logo.

And now that I'm also seeing target="_self" I have to wonder why that would be needed? URL busting?

#4 @Website Rob
9 months ago

Have now confirmed same situation when top-level dir. is used.

<p class="wp-block-site-title"><a href="https://domain.com" target="_self" rel="home" aria-current="page">domain.com</a></p>

#5 @SergeyBiryukov
3 months ago

  • Component changed from Themes to Bundled Theme
  • Summary changed from Theme - Twenty Twenty-Three - incorrect home link to Twenty Twenty-Three: Incorrect home link
Note: See TracTickets for help on using tickets.