Last active
January 14, 2020 04:15
-
-
Save jsmpros/1daa06b3195b9403bd3367dfce329636 to your computer and use it in GitHub Desktop.
Navigate to Current URL including all search parameters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if(!!frames["TargetContent"]) { | |
| /* Classic */ | |
| top.location.href = frames["TargetContent"].strCurrUrl; | |
| } else { | |
| /* Classic content in a Fluid WorkCenter or Activity Guide */ | |
| if(!!document.querySelector(".ps_target-iframe")) { | |
| top.location.href = document.querySelector(".ps_target-iframe").contentWindow.strCurrUrl; | |
| } else { | |
| /* Standard Fluid Content */ | |
| top.location.href = strCurrUrl; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment