Skip to content

Routable full page URL template tag #13646

@thibaudcolas

Description

@thibaudcolas

Problem statement

Follow-up to #9795 - right now if you use the routablepageurl template tag and need absolute URLs, you need to do concatenation. With the risk that the concatenation isn’t done correctly for multi-site setup. It would be nice if there was a simpler way that is less error-prone.

Proposed solution

Introduce a new routablefullpageurl template tag, that works exactly like the existing routablepageurl, but produces absolute URLs like fullpageurl does.

Alternative solutions

I can keep concatenating, it works, just not super elegant.

{{ page.get_site.root_url }}{% routablepageurl page "feed" %}

Additional context

See #9795

Working on this

Contribute to the discussion to help this move forward. Explain your use cases, discuss possible solutions, research how to adapt existing code, or compatibility concerns.

Once others agree with the proposed changes, anyone can contribute to this. View our contributing guidelines. Add a comment to the issue to explain what approach you are taking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions