Skip to content

Dynamic content based on query params #148

@dgarcia360

Description

@dgarcia360

Requirement

We have a requests from different doc project for a dynamic page:
Take a URL like:
docs.scylladb.com/?node=x&user=y

And use it in the doc like:
"As a user Y you take the address of X and ..."

Implementation

The notation to write a substitution in the page's source code could look like:

"as a user ${ Y:developer} you take the address ..."

So, if the user does not provide a query param, the page will render a default value (developer) instead of ${Y}.

We need to make sure that no one can inject custom JS snippets or HTML tags like links to prevent others from injecting redirections or other malicious code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions