Introduce a token to get site's base URL

Created on 10 March 2011, over 13 years ago
Updated 18 February 2023, over 1 year ago

Problem/Motivation

We currently have a token [site:url]. The URL of the site's front page. The language prefix is added if the page is multilingual (e.g. http://www.example.com/pl).

In many cases a language prefix is unnecessary.

Example:

Open graph image path
[site:url]/sites/default/files/og_image.jpg

JSON LD ImageObject path
[site:url]/sites/default/files/logo.jpg

We need a new token that returns the base url without the language prefix.

Proposed resolution

Add token [site:base-url]. Base URL.

Remaining tasks

User interface changes

Users can use the new token [site:base-url].

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

10.1 ✨

Component
Token  →

Last updated 13 days ago

No maintainer
Created by

🇮🇹Italy ao2

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024