04/26/2015 at 4:16 am #7059
Anonymous
Participant
Hi,
n
n
The only way to keep the URL with the ID parameter I can see is to use some JavaScript to do it.
n
n
- n
- Add a HTML Form Web Part into the page;
- Write below JavaScript in the Source Editor:
n
n
n
<script>
n
var url = window.location;
n
if(url.toString().indexOf('ID') == -1)
n
{
n
if(url.toString().indexOf('?') == -1)
n
{
n
window.location.href = url+'?ID=4';//the ID value is 4
n
}
n
else{
n
window.location.href = url+'&ID=4'; //the ID value is 4
n
}
n
}
n
</script>
n
This script is to detect the URL, if doesn’t contains ID parameter, then add it and refresh the page. the ID value is hardcode to 4 here, you can modify it according to your business scenario.
n
n