I am now developing using a reactive web. When I used getURl() in server action, the function returned me with "https://yyve-sh.outsystemscloud.com/CalendarDemo/screenservices/MasterPage/Action_xxx"


However, in fact, if I copy the page link directly from my mobile site, the real URL is "https://open.weixin.qq.com/connect/qrconnect?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect If the system prompts "this link cannot be accessed"


How am I suppose to solve the problem?

Hi Yvette,


Since you are using Reactive, have you tried using a Javascript flow element on a Client action to get the URL?


Regards


João

João Miranda wrote:

Hi Yvette,


Since you are using Reactive, have you tried using a Javascript flow element on a Client action to get the URL?


Regards


João


No, I am actually new to the whole developing thing, any suggestions? Where should I start from?

Solution

Hi,


You can get the URL using a client action like this:


This runs logic only on the client side. I also don´t think that using this code raises a security issue, since you are using the value and not changing it.


Since you are new to developing with Outsystems, if you want more information on how to use the Javascript flow element, or any other subject, the video tutorials have very useful material:

https://www.outsystems.com/learn/paths/18/becoming-a-reactive-web-developer/

https://www.outsystems.com/learn/paths/1/becoming-a-mobile-developer/

https://www.outsystems.com/learn/paths/2/becoming-a-traditional-web-developer/


Regards


João

Solution