Skip to content

Commit

Permalink
Force removal of view querystring, in links for overview/custom tim…
Browse files Browse the repository at this point in the history
…erange

Remove the `view` parameter from the querystrings of URLs which show custom timeranges, or the overview of all preset timeranges.  The `view` parameter should only be used for preset views.  This allows for easier discovery of custom timeranges elsewhere in the application.
  • Loading branch information
jimbobmcgee authored Mar 19, 2021
1 parent c2446ab commit 7b88b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/pnp/application/views/timerange_box.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
echo "<div class=\"p4 ui-widget-content ui-corner-bottom\">\n";
$start = $this->session->get('start','');
$end = $this->session->get('end','');
$path = pnp::addToUri(array('start' => $start,'end' => $end));
$path = pnp::addToUri(array('view' => '', 'start' => $start,'end' => $end));
if($start && $end){
echo "<a class=\"multi0\" href=\"".$path."\">".Kohana::lang('common.timerange-selector-link')."</a><br>\n";
}
Expand Down

0 comments on commit 7b88b03

Please sign in to comment.