Skip to content

Commit

Permalink
Fixes error 404 on creating views, issue #14082
Browse files Browse the repository at this point in the history
Signed-off-by: Lakshay arora <arora.lakshya123@gmail.com>
  • Loading branch information
aroralakshya committed Mar 29, 2018
1 parent 695fe3a commit 29c4538
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libraries/classes/Util.php
Expand Up @@ -1767,6 +1767,12 @@ public static function linkOrButton(
*/
$tag_params_strings[] = 'data-post="' . (isset($parts[1]) ? $parts[1] : '') . '"';
$url = $parts[0];
if(array_key_exists('class', $tag_params)
&& strpos($tag_params['class'], 'create_view') !== false
) {
$url .= '?' . explode('&', $parts[1], 2)[0];
}

}

foreach ($tag_params as $par_name => $par_value) {
Expand Down

0 comments on commit 29c4538

Please sign in to comment.