Timeline for SSJS Platform.Response.Redirect() throws unknown error: Error in Application
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 12, 2020 at 11:17 | comment | added | Gortonington | As a note @SamWhitmore they are technically two different functions that translate to the same exact action. (I know, semantics and all that jazz... :X) As to the speed, it is the library call that adds the time, not the function. BUT loading the Core Library is not as huge of a draw as many perceive it to be too. I would not say you should avoid Core at all costs in any way. It is more consider what library/language best suits your needs. There are many places (especially in Landing pages) that utilizing Core actually helps you speed up and make your code more efficient/elegant. | |
Jul 7, 2020 at 18:38 | comment | added | Sam Whitmore | Platform.Response.Redirect() and Redirect() are the same functions. Platform.Response.Redirect is faster, though, as you don't have to load the entire core library to use it. It's a best practice to avoid the core functions (Platform.Load) as much as possible. | |
Jul 6, 2020 at 21:46 | comment | added | shd.lux | Same issue - I have tried it with lib 1.1.1 to 1.1.5, loading Platform or reference Platform, tried with true, false or null. The result is the same. Is this code working for you? It does not for me | |
Jul 6, 2020 at 18:42 | history | answered | Akash R | CC BY-SA 4.0 |