Strange URL behaviour drupal 8.9
Next problem I have on a drupal 8.9.5 dev site.
I have a entity with teams and this entity has a text field with the url of the team page (relative link)
On a view of the block type I rewrite the result with this rule:
<a href="{{field_team_link}}">
{field_team_icon_url}}
{{field_team_name}}
</a>
And the link field in the team entity is something like /teampagina/HA1 Where HA1 is the teamcode and this lead to a page with the contextual filter = team_code
I have read through the following options I found. I am not sure which one to choose, when it comes to suitability for initial import, update convenience, future module support etc. Can you please share your experience to help me make my choice:
This is the only place I use this constant. The reason for using a PHP global const for this is to have it defined near the top of the file for easy spotting and replacement. So having it as a value inside the function is not an option.