Devenia / WordPress plugin

Devenia Canonical Shortlinks keep WordPress references on the current canonical permalink

When WordPress generates a shortlink tag, the returned address can stay aligned with the destination visitors already recognize instead of exposing a numeric ?p= reference.

Devenia Canonical Shortlinks resolver for a supplied post ID or singular post context, returning a canonical permalink and preserving an unchanged fallback when unresolved.

The address readers receive

A shortlink can name the record or point to its destination

WordPress’s default shortlink identifies a post with a query string; this plugin makes the post’s current permalink the returned address.

Query-string shortlink

The usual ?p= form identifies the record by number, even when the page already has a canonical address.

Canonical permalink

The resolved post’s current permalink becomes the shortlink output, so the address and destination agree.

How WordPress resolves it

The available post context decides the returned address

A supplied post ID

When WordPress supplies an ID, the plugin resolves that exact post and returns its current permalink.

A singular request

Without an ID, a singular request provides the post currently being viewed for resolution.

No resolvable post

If no post or permalink is available, the incoming shortlink passes through unchanged.

What it does not change

Only the shortlink output is replaced

The plugin stays at the output boundary, so the rest of the site’s content and address settings remain yours.

Settings

Nothing to configure; the plugin adds no settings.

Storage

No values or configuration are stored.

Public endpoint

No endpoint is added for readers to call.

Redirect

Requests are not redirected.

Content and address settings

Post slugs, canonical tags, permalink settings, and content remain unchanged.

Shortlink filter

Only the value returned through WordPress’s get_shortlink filter changes.

Before installation

Two runtime requirements

These native runtime requirements provide WordPress’s shortlink context and the server runtime that executes the plugin.

6.0 or later

WordPress 6.0 or later

Provides the shortlink filter, singular request context, and canonical permalink resolution.

Stable package

Add canonical shortlinks to a WordPress site

Download the stable ZIP to install the plugin and let resolvable posts return the addresses they already own.