Skip to content

RegEx named capture group not recognized as variable #79

Open
@dandv

Description

@dandv

In the code below, $page is highlighted as an unknown variable.

  location ~ ^/pages/(?<page>[^/]+)/?(edit)?$ {
    root /var/www/website/pages;
    try_files /$page/index.html /index.html =404;
  }

image

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