projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
600a703
)
build_std_url: Fragment unterstützen
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 8 Jul 2021 11:16:18 +0000
(13:16 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Thu, 8 Jul 2021 15:18:50 +0000
(17:18 +0200)
bin/mozilla/common.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/common.pl
b/bin/mozilla/common.pl
index
19955c1
..
33ef7e3
100644
(file)
--- 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);