function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Use a Web Tab without hard coding the URL

I want to use a web tab but I don't want to hard code the url into the web tab.  Is there an easy way to define some other object that the web tab content can reference?


I want to avoid having hard coded urls all over my application.  When going from dev to integration to production I would like the configuration data in one location.




What about using a Visualforce tab that loads a Visualforce page. And that page, when loaded, calls an Apex action method to query a custom object and that custom object stores a record for each of the different URLs you want to configure. Then the Apex method can return a PageReference to the identified URL. 




Hi Friend,


Can i know how did you solved this issue. For me also same problem, i want the web tab url by referring the label in apex controller.