- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
12-07-2009 02:02 AM - edited 12-07-2009 04:52 AM
I am developing an application using Flex and Salesforce. In my custom component controller I am using
to retrieve current page url. After completing flex stuff, I am returning to the current page using this return url.
This is working in my Developer organization which has a namespace prefix.
But when my customer installs this managed package and uses this custom component inside their custom visualforce page it is appending my namespace prefix to it, instead that custom page and my customer environment does not have a namespace prefix.
So when user clicks OK button it is trying to return to https://c.na7.visual.force.com/apex/MYDEVELOPMENTN
but the page stays at https://c.na7.visual.force.com/apex/MyCustomPage..
How can I solve this problem? Is there a dynamic way to solve this problem or do i need to get the url as string then split and remove namespace?
Thanks in advance,