Make guessApproot the default (for yesod-core1.5)
This commit is contained in:
parent
8e7476cb7a
commit
79aefc694a
@ -64,18 +64,14 @@ class RenderRoute site => Yesod site where
|
|||||||
-- | An absolute URL to the root of the application. Do not include
|
-- | An absolute URL to the root of the application. Do not include
|
||||||
-- trailing slash.
|
-- trailing slash.
|
||||||
--
|
--
|
||||||
-- Default value: 'ApprootRelative'. This is valid under the following
|
-- Default value: 'guessApproot'. If you know your application root
|
||||||
-- conditions:
|
-- statically, it will be more efficient and more reliable to instead use
|
||||||
|
-- 'ApprootStatic' or 'ApprootMaster'. If you do not need full absolute
|
||||||
|
-- URLs, you can use 'ApprootRelative' instead.
|
||||||
--
|
--
|
||||||
-- * Your application is served from the root of the domain.
|
-- Note: Prior to yesod-core 1.5, the default value was 'ApprootRelative'.
|
||||||
--
|
|
||||||
-- * You do not use any features that require absolute URLs, such as Atom
|
|
||||||
-- feeds and XML sitemaps.
|
|
||||||
--
|
|
||||||
-- If this is not true, you should override with a different
|
|
||||||
-- implementation.
|
|
||||||
approot :: Approot site
|
approot :: Approot site
|
||||||
approot = ApprootRelative
|
approot = guessApproot
|
||||||
|
|
||||||
-- | Output error response pages.
|
-- | Output error response pages.
|
||||||
--
|
--
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user