Skip to content
This repository was archived by the owner on Jan 8, 2025. It is now read-only.
This repository was archived by the owner on Jan 8, 2025. It is now read-only.

Add a context variable with current path #123

Description

@nils-van-zuijlen

I'm trying to create a nav with an element that signifies which is the current page, but I can't work it out.

It would be easier if there was a way to easily know which page is rendered from the Jinja context.

It may be implemented by adding a current_path context variable, derived from the base_path and the view's path.
Also, another requirement for it would be that it corresponds to the output of the url templatetag for that view.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions