drogonframework / drogonframework/drogon

Link Generator

Open
#2,070 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 13h
Merged PRs (30d)
14

Description

As per the gitter chat, is there scope for providing a LinkGenerator similar to ASP.NETs LinkGenerator class? It would be very useful in CSP views and controllers that want to redirect to somewhere else in the app. The idea being you pass a controller name and some route values and it would return a relative or absolute Uri (depending on what was requested). It should make code that uses it resilient to any routing changes in the app. For example, if I change the route on a controller, then code using the LinkGenerator will not need to be changed to get the new route

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.