Display Record Image on Custom page in html widgets - Environment issue

Display Record Image on Custom page in html widgets - Environment issue

Hi,

I am trying to display an image from a record on a detailed record page.
The page is created with a html widget.

I noticed that the default retuned image url has to be processed.
Something like :

carImage.replaceAll("sharedBy","accountname").replaceAll("appLinkName","appName").replaceAll("fieldName","Fieldname").replaceAll("viewLinkName","reportname");

So far all works, but the image is not loaded on the page, probably since I am working in my develop environment

When i modify the url to the following it is loading/visible: ( i added the environment to the url )
/accountname/environment/development/appname/....

But this code will not work when I will push my code to live environment or test environment
How should I solve this?


      Zoho Campaigns Resources


        • Desk Community Learning Series


        • Digest


        • Functions


        • Meetups


        • Kbase


        • Resources


        • Glossary


        • Desk Marketplace


        • MVP Corner


        • Word of the Day


        • Ask the Experts


          Zoho CRM Plus Resources

            Zoho Books Resources


              Zoho Subscriptions Resources

                Zoho Projects Resources


                  Zoho Sprints Resources


                    Zoho Orchestly Resources


                      Zoho Creator Resources


                        Zoho WorkDrive Resources



                          Zoho CRM Resources

                          • CRM Community Learning Series

                            CRM Community Learning Series


                          • Tips

                            Tips

                          • Functions

                            Functions

                          • Meetups

                            Meetups

                          • Kbase

                            Kbase

                          • Resources

                            Resources

                          • Digest

                            Digest

                          • CRM Marketplace

                            CRM Marketplace

                          • MVP Corner

                            MVP Corner




                            Zoho Writer Writer

                            Get Started. Write Away!

                            Writer is a powerful online word processor, designed for collaborative work.

                              Zoho CRM コンテンツ



                                ご検討中の方