It can handle them, it's just it means that you want 'dashboard' to be called when the user visits "invoice%2Fdashboard"<div><br></div><div>If you want it to be called when the user visits "invoice/dashboard", then you'd do ("invoice" "dashboard")</div>
<div><br></div><div>The list in dispatch-rules corresponds to elements of the URL path.</div><div><br></div><div>Jay<br><br><div class="gmail_quote">On Thu, Dec 8, 2011 at 4:03 PM, Jordan Schatz <span dir="ltr"><<a href="mailto:jordan@noionlabs.com">jordan@noionlabs.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">The docs don't seem to specify, and I can't get it to work, so am I<br>
correct that dispatch-rules cant handle url patterns that contain<br>
slashes?<br>
<br>
;;Doesn't work<br>
(define-values (static-dispatch static-url)<br>
(dispatch-rules<br>
;;None of these functions take any arguments<br>
[("invoice/dashboard") dashboard]<br>
[("invoice/edit-company") edit-company]<br>
[("invoice/export-customers") export-customers]<br>
[("invoice/import-customers") import-customers]<br>
[("invoice/create-customer") create-customer]<br>
[("invoice/list-customers") list-customers]<br>
[("invoice/export-invoices") export-invoices]<br>
[("invoice/import-invoices") import-invoices]<br>
[("invoice/create-invoice") create-invoice]<br>
[("invoice/list-invoices") list-invoices]<br>
[("invoice/payment-methods") payment-methods]<br>
[("invoice/logout") logout]))<br>
<br>
-Jordan<br>
_________________________________________________<br>
For list-related administrative tasks:<br>
<a href="http://lists.racket-lang.org/listinfo/users" target="_blank">http://lists.racket-lang.org/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Jay McCarthy <<a href="mailto:jay@cs.byu.edu" target="_blank">jay@cs.byu.edu</a>><br>Assistant Professor / Brigham Young University<br><a href="http://faculty.cs.byu.edu/~jay" target="_blank">http://faculty.cs.byu.edu/~jay</a><br>
<br>"The glory of God is Intelligence" - D&C 93<br>
</div>