Re: [Cppcms-users] Fwd: URL with and without last slash
Brought to you by:
artyom-beilis
|
From: Sergey <ser...@gm...> - 2014-12-20 03:08:42
|
You forgot last slash with "?"
example:
dispatcher().assign("/number/(\\d+)/?",&page::number,this,1);
mapper().assign("number", "/number/{1}");
/number/(\\d+) - /number/1 found, /number/1/ not found
/number/(\\d+)/? - /number/1 found, /number/1/ found :)
|