Make WordPress Core

Opened 3 months ago

Closed 3 months ago

#62248 closed enhancement (duplicate)

Adding an audio media to a post insert au full URL

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

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 3 months ago.
Add Media button

Download all attachments as: .zip

Change History (2)

@dpaquin
3 months ago

Add Media button

#1 @jorbin
3 months ago

  • Focuses ui javascript removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
  • Version 6.6.2 deleted

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.