Skip to content
代码片段 群组 项目
  • Catalin Irimie's avatar
    bc5e58ef
    Change trailing slash from constraints to default for insights routes · bc5e58ef
    Catalin Irimie 创作于
    Simply specifying trailing_slash: true as a parameter to the route
    matcher adds it as both a constraint and option.
    
    However this means url_for will not be able to generate this dynamically
    since trailing_slash is a reserved keyword for url_for and cannot be
    used as an option.
    
    This makes the _default_, not constraint to have a trailing slash, so
    that path and URL helpers generate it _with_ the trailing slash, but
    not _require_ it.
    bc5e58ef
    历史
    Change trailing slash from constraints to default for insights routes
    Catalin Irimie 创作于
    Simply specifying trailing_slash: true as a parameter to the route
    matcher adds it as both a constraint and option.
    
    However this means url_for will not be able to generate this dynamically
    since trailing_slash is a reserved keyword for url_for and cannot be
    used as an option.
    
    This makes the _default_, not constraint to have a trailing slash, so
    that path and URL helpers generate it _with_ the trailing slash, but
    not _require_ it.
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。