Make WordPress Core

Opened 2 years ago

Closed 2 years ago

#62248 closed enhancement (duplicate)

Adding an audio media to a post insert au full URL

Reported by: dpaquin Owned by:
Priority: normal Milestone:
Component: Editor Version:
Severity: normal Keywords:
Cc: Focuses:

Description

When we use the button "Add Media" to a post, it should add the media with a relative url and not an absolute path.

Instead of

it should add

  • /wp-content/uploads/2024/10/my-audio.mp3

Thank you

Attachments (1)

Screenshot 2024-10-17 145152.jpg​ (15.8 KB ) - added by dpaquin 2 years ago.
Add Media button

Download all attachments as: .zip

Change History (2)

#1 @jorbin
2 years ago

  • Focuses ui javascript removed
  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed
  • Version 6.6.2

Hi @dpaquin, welcome to WordPress Core Trac.

The use of absolute URLs is a design decision. You can read more about it at
​https://make.wordpress.org/core/handbook/contribute/design-decisions/#absolute-versus-relative-urls and if you want to dig further, you can also read #17048 which I am going to close this as a duplicate of.

Note: See TracTickets for help on using tickets.