Introduce a token to get site's base URL

Created on 10 March 2011, almost 14 years ago
Updated 18 February 2023, almost 2 years 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 2 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.71.5 2024