How to change the frontend header «Create an Account» link's URL?

Preliminary reading: How is the frontend header’s «Create an Account» link rendered?

Method 1 (recommended)

  1. Create a class which inherits from the \Magento\Customer\Model\Url.

Method 2

Create an after-plugin to the \Magento\Customer\Block\Account\RegisterLink::getHref() method.

See also: