Skip to content

Make URLs in .ejs files completely dynamic #690

Closed

Description

@jvherweg

URLs in .ejs files get constructed as follows:

"<%= details.pathPrefix %>/idp/interaction/<%= details.uid %>/confirm"

If we could make it work so the class relevant for rendering that file sends the full URL so we can write <%= details.url %>, we could potentially configure it so this URL construction is only stored in 1 place. The corresponding config strings are regexes though: "^/idp/interaction/[-_A-Za-z0-9]+/confirm/?$", so we would need a way to handle the dynamic token string in there.

Activity

  1. RubenVerborgh commented on Apr 20, 2021

    @RubenVerborgh
    Member

    Definitely.
    Let's add URI templates to the config, in addition to the regexes.

  2. removed their assignment
    on Apr 20, 2021
  3. jvherweg commented on Sep 8, 2021

    @jvherweg
    MemberAuthor

    Done in #932

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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