From: Bernd Bleßmann Date: Thu, 8 Jul 2021 11:16:18 +0000 (+0200) Subject: build_std_url: Fragment unterstützen X-Git-Tag: kivitendo-mebil_0.1-0~9^2~49 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=80591b8a5ca535d415a691ab4c0c302c33a8126e;p=kivitendo-erp.git build_std_url: Fragment unterstützen --- diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index 19955c1ca..33ef7e32c 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -23,8 +23,8 @@ sub build_std_url { my $form = $main::form; - my $script = $form->{script}; - + my $script = $form->{script}; + my $fragment; my @parts; foreach my $key (@_) { @@ -33,6 +33,10 @@ sub build_std_url { if ($key =~ /(.*?)=(.*)/) { if ($1 eq 'script') { $script = $2; + + } elsif ($1 eq 'fragment') { + $fragment = $2; + } else { push @parts, $key; } @@ -44,7 +48,7 @@ sub build_std_url { } } - my $url = "${script}?" . join('&', @parts); + my $url = "${script}?" . join('&', @parts) . (defined $fragment ? "#$fragment" : ''); $main::lxdebug->leave_sub(2);