Sails.js特殊字符路线

如果我做了以下要求:

http://localhost:1337/search/### 

由于#,请求不会被路由到SearchController searchBySlug方法。

我该怎么做才能将这个url路由到正确的方法?

你有没有试过http://localhost:1337/search/%23%23%23并parsingURL编码为string?

解码使用decodeURIComponent('%23%23%23')将导致###