Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Difference between path and path/ in the router #244

Closed
@rawleyfowler

Description

@rawleyfowler

Say I have the scope:

Dream.scope"/users"[]  [Dream.get"/" (fun_ ->Dream.html"Hello!") ]

When I navigate to/users I expect to seeHello! but instead I get a 404. If I navigate to/users/ however, I will seeHello!. I don't think this is intentional.

If I want it to catch without the final slash, I have to add another route to the scope:

Dream.scope"/users"[]  [Dream.get"/" (fun_ ->Dream.html"Hello!")  ;Dream.get"" (fun_ ->Dream.html"Hello!")  ]

Then it is working as expected.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp