expressjs / expressjs/express

Question: Is there a way to identify a route and create href link to it?

Open
#2,739 9 comments 0 reactions 0 assignees View on GitHub
ideas module:router
Dominant language
JavaScript
Stars
69.5k
Forks
25k
Avg merge
4d 20h
Merged PRs (30d)
9

Description

Hi there,
I'm using Express for what I imagine to be a large project, and I have many href links inside my views. I **do not** want to hardcode them at all! Any time I change something I must go and search in the code in order to make it work.

_Short story_: how can I track back a route, so I can use this in views:

``` html

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.