You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- TODO: Allow a way to configure disabling stripping of .html, since not all
-- static site hosts support pretty URLs.
routeUrl::forallrmodel.Emamodelr=>model->r->Text
routeUrl model =
Some places like Gitlab do not support these kinds of URLs. Therefore, add a routeUrlWith that takes an extra argument telling it to whether to "prettify" the URL or not.
And then define a type like this,
dataUrlStrategy=UrlPretty
| UrlDirect
Ema users can then use either routeUrl or routeUrlWith UrlDirect to define their URL linking behaviour.
The text was updated successfully, but these errors were encountered:
We already have
routeUrl
that produces "pretty" URLs (ie, without.html
suffix),ema/src/Ema/Route.hs
Lines 20 to 23 in e745650
Some places like Gitlab do not support these kinds of URLs. Therefore, add a
routeUrlWith
that takes an extra argument telling it to whether to "prettify" the URL or not.And then define a type like this,
Ema users can then use either
routeUrl
orrouteUrlWith UrlDirect
to define their URL linking behaviour.The text was updated successfully, but these errors were encountered: