Charles Robertson
03/06/2024, 4:50 PMvariables.fw.redirect(action='question.form',append="questionid");
Which displays:
<https://www.foo.com/question/form/questionid/31>
But I also have a route:
...
generateSES = true,
SESOmitIndex = true,
routes = [
{"$*/question/edit/questionid/([0-9]+)/?$" = "/question/form/questionid/\1"},
...
Surely, the redirect()
& buildURL()
methods, should add the route conversion as well? So, I would expect the following to be displayed in the address bar:
<https://www.foo.com/question/edit/questionid/31>
Have I uncovered a bug, or maybe these methods do not analyze the routes, when converting links into SES links.seancorfield
redirect()
and buildURL()
do not consider route mappings).
It's an interesting potential enhancement -- but no one's maintaining FW/1 these days so it is very unlikely to get added, unless you decide to implement it and submit a PR.Charles Robertson
03/06/2024, 5:00 PMseancorfield
redirect()
and buildURL()
-- so that it doesn't break any existing users' code.Charles Robertson
03/06/2024, 5:54 PMpublic void function redirect( string action, string preserve = βnoneβ, string append = βnoneβ, string path = see below, any queryString = ββ, string statusCode = β302β, string header = ββ,boolean applyRoute = false)