Liking cljdoc? Tell your friends :D

metabase.util.urls

Utility functions for generating the frontend URLs that correspond various user-facing Metabase objects, like Cards or Dashboards. This is intended as the central place for all such URL-generation activity, so if frontend routes change, only this file need be changed on the backend.

Functions for generating URLs not related to Metabase objects generally do not belong here, unless they are used in many places in the codebase; one-off URL-generation functions should go in the same namespaces or modules where they are used.

Utility functions for generating the frontend URLs that correspond various user-facing Metabase *objects*, like Cards or Dashboards.
This is intended as the central place for all such URL-generation activity, so if frontend routes change, only this file need be changed
on the backend.

Functions for generating URLs not related to Metabase *objects* generally do not belong here, unless they are used in many places in the
codebase; one-off URL-generation functions should go in the same namespaces or modules where they are used.
raw docstring

card-urlclj

(card-url id)

Return an appropriate URL for a Card with ID.

(card-url 10) -> "http://localhost:3000/question/10"

Return an appropriate URL for a `Card` with ID.

(card-url 10) -> "http://localhost:3000/question/10"
sourceraw docstring

dashboard-urlclj

(dashboard-url id)

Return an appropriate URL for a Dashboard with ID.

(dashboard-url 10) -> "http://localhost:3000/dashboard/10"

Return an appropriate URL for a `Dashboard` with ID.

(dashboard-url 10) -> "http://localhost:3000/dashboard/10"
sourceraw docstring

pulse-urlclj

(pulse-url id)

Return an appropriate URL for a Pulse with ID.

(pulse-url 10) -> "http://localhost:3000/pulse#10"

Return an appropriate URL for a `Pulse` with ID.

(pulse-url 10) -> "http://localhost:3000/pulse#10"
sourceraw docstring

segment-urlclj

(segment-url id)

Return an appropriate URL for a Segment with ID.

(segment-url 10) -> "http://localhost:3000/admin/datamodel/segment/10"

Return an appropriate URL for a `Segment` with ID.

(segment-url 10) -> "http://localhost:3000/admin/datamodel/segment/10"
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close