Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[D10][D7] Introduce a token to get site's base URL #6009

Open
klonos opened this issue Mar 1, 2023 · 0 comments
Open

[D10][D7] Introduce a token to get site's base URL #6009

klonos opened this issue Mar 1, 2023 · 0 comments
Assignees

Comments

@klonos
Copy link
Member

klonos commented Mar 1, 2023

This was introduced in D10.1.x with https://git.drupalcode.org/project/drupal/-/commit/84a67e9f9409cf3848050252134d9ba82b546dad (change record) and this issue was also created to backport that to the contrib Token 7.x.

Introduced the following tokens:

  • [site:base-url]: token to get the base URL, the scheme and HTTP host of the site without the language prefix including the subdirectory name if Drupal is installed in a subdirectory.
  • [site:base-path]: Token to get the root path from which this request is executed. e.g. /web when the request is executed from a subdirectory web.

This here is the respective ticket for the same thing for Backdrop.

@klonos klonos self-assigned this Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant