findExpose

This commit is contained in:
thosakwe 2016-12-30 21:11:55 -05:00
parent ce28fa338b
commit e09050f116

View file

@ -210,7 +210,7 @@ class ResponseContext extends Extensible {
"Controller '${split[0]}' does not contain any action named '${split[1]}'");
final head =
controller.exposeDecl.path.toString().replaceAll(_straySlashes, '');
controller.findExpose().path.toString().replaceAll(_straySlashes, '');
final tail = matched.makeUri(params).replaceAll(_straySlashes, '');
redirect('$head/$tail'.replaceAll(_straySlashes, ''), code: code);