It would be very convenient to add token support for the base_uri so this can be changed from the configuration interface without the need to deploy new yml files or alter settings.php.

Comments

kurkuma created an issue. See original summary.

kurkuma’s picture

StatusFileSize
new1.3 KB

Find patch attached to parse tokens in the base_uri.
If a string is defined insead of a token it will be used instead.

aronne’s picture

Status: Needs review » Needs work

Hi @kurkuma and thx for contributing with your patch.
Just few things:

  • avoid usage of \Drupal::token(). Use Dependency Injection please.
  • the if - else condition could be improved by keeping the $base_uri = $config['base_uri'] at the beginning of the method and then removing the else statement
aronne’s picture

Status: Needs work » Closed (duplicate)
aronne’s picture

Assigned: Unassigned » aronne
Status: Closed (duplicate) » Fixed
StatusFileSize
new3.3 KB

Hi,
I'm reopening this issue and uploading a proper patch which works with the last version of the module.

Regards.

  • aronne authored d9cd3d3c on 9.3.x
    Issue #3105372 by kurkuma, aronne: Allow for configurable base_uri value
    
aronne’s picture

Title: Allow for configurable base_uri value » Allow using tokens as base_uri value

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.