Timeline for Get complete URL with parameters in SSJS/Ampscript
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 27, 2023 at 20:32 | history | became hot network question | |||
Nov 27, 2023 at 15:11 | vote | accept | Lukas Lunow | ||
Nov 27, 2023 at 15:07 | comment | added | Rachid Mamai | @LukasLunow no worries. Yeah sure ;) | |
Nov 27, 2023 at 15:07 | answer | added | Rachid Mamai | timeline score: 2 | |
Nov 27, 2023 at 14:54 | comment | added | Lukas Lunow | @RachidMamai - Thank you. Don't know how I missed that one. Can you put this into an answer so I can accept it? | |
Nov 27, 2023 at 14:27 | comment | added | Rachid Mamai | Actually, QueryString is a function that returns the full query string. I've tested it personally and it returns the full list of parameters as a string. No need to fetch the parameters one by one using GetQueryStringParameter.. | |
Nov 27, 2023 at 14:21 | comment | added | Lukas Lunow | @RachidMamai QueryString is AFAIK not possible to fetch in it's complete form in a single function. One will need to go one parameter at a time, e.g. Request.GetQueryStringParameter("foo"); - or am I missing out on a function? | |
Nov 27, 2023 at 14:12 | comment | added | Rachid Mamai | Indeed, if one of the parameters contains a URL, it does not function correctly. Do you have the possibility to combine two different functions instead of RequestURL? If yes, then you can use ReferrerURL to get the base URL, and QueryString to get the query string (and it does return all the query strings including the additional URL), and then concatenate these two strings.. | |
Nov 27, 2023 at 13:31 | comment | added | Lukas Lunow | Thanks for checking this, @DucLe. I did some more tests based on your feedback, and discovered some interesting quirk of the RequestURL() function. Please see my updated question. | |
Nov 27, 2023 at 13:30 | history | edited | Lukas Lunow | CC BY-SA 4.0 |
Added more details on what seems to be the root cause
|
Nov 27, 2023 at 13:16 | comment | added | Duc Le | Not sure how your Cloud Page was called since the first method should show a full URL. I also did test it myself and got a full URL. | |
Nov 27, 2023 at 12:24 | history | asked | Lukas Lunow | CC BY-SA 4.0 |