25
Views
5
Comments
Solved
Domain is changed when running Timer
Question

Hi!
I'm using the GetReactiveURL to create the URL of the detail screen.

When running it through a Timer, the domain changes to 127.0.0.1.

※ In reality, I want it to change to ossap.testusername.co.jp.

I want to know how to solve this situation.

I think that if '127.0.0.1' is replaced with 'ossap.testusername.co.jp', the domain will need to be stored using Site Property.

If there's a way to avoid storing the domain in the program, please guide me!

Champion
Solution

Hello,

If you want to get the domain URL at runtime you can use GetRequestDomain server action, which will return you the current environment Domain at runtime.

You need to add the dependencies from the the HTTPRequestHandler Module 

You can also check this Post for reference - 

I hope this will help you

Best Regards
Tousif Khan

Hello @Tousif Khan,
The information you shared is very helpful. Thank you very much!
Best regards ,
THOAN 

Champion

Your welcome :)
I am glad, I was able to help.
Regards
Tousif Khan

Hi @Jerome Rajadurai J ,

Thank you,  i will try the component  you shared.

Champion
Solution

Hello,

If you want to get the domain URL at runtime you can use GetRequestDomain server action, which will return you the current environment Domain at runtime.

You need to add the dependencies from the the HTTPRequestHandler Module 

You can also check this Post for reference - 

I hope this will help you

Best Regards
Tousif Khan

Hello @Tousif Khan,
The information you shared is very helpful. Thank you very much!
Best regards ,
THOAN 

Champion

Your welcome :)
I am glad, I was able to help.
Regards
Tousif Khan

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.