1

I have a visualforcepage which is included in a layoutpage. Viewlayout of this object has an override with another visual force page.

When I call a pagereference methode from "inline" visualforcepage an try to leave the Iframe and load current objectpage again, salesforce creates a new URL with parameter inline=1. By this parameter, Header and Sidebar is invisible.

Vf page:

<apex:commandLink value="edit" action="{!Edit}" id="cl" target="_blank">
</apex:commandlink>

Is there a possibility to avoid getting parameter inline=1?

1 Answer 1

3

Just a guess:

If you can override this param by your controller method then it would work:

PageReference ref = MyPage.page
ref.getParemeters().put('inline','0');
// or try
//ref.getParemeters().remove('inline');
return ref

If there is standard controller then you can do like this:

<apex:commandLink value="edit" action="{!Edit}" id="cl" target="_blank">
    <apex:param name="inline" value="0"/>
</apex:commandlink>
2
  • Just for a reference this does not work - you get ?inline=0&inline=1
    – zokito
    Commented May 4, 2015 at 15:01
  • This solution should be removed since it does not work. Commented Apr 12, 2016 at 16:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .