Absolute paths in links to the Media Library

I notice that, at least in the block editor, when I insert a page from the media library, it uses an absolute rather than relative path. (In other words, the path starts with https, the domain name, etc.) I need to “edit with html” to fix that, in order to have image paths that won’t break, for example if the domain name of the site changes.

Wouldn’t it be better to default to using relative paths? Or am I missing something?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer