Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pub
Colibri WebSite
Commits
3e6a5548
Commit
3e6a5548
authored
Mar 31, 2021
by
Allan Blanchard
Browse files
Merge branch 'feature/bts-redirect' into 'master'
Fixes BTS id format See merge request
!112
parents
1410874f
6cd4a495
Changes
1
Hide whitespace changes
Inline
Side-by-side
redirect-old-bts.html
View file @
3e6a5548
...
...
@@ -2504,18 +2504,25 @@ name: Old BTS redirections
};
const
v
=
window
.
location
.
toString
();
var
not_found
=
document
.
getElementById
(
'
issue_not_found
'
);
if
(
v
.
includes
(
"
?
"
)){
const
asked
=
v
.
split
(
"
?
"
)[
1
];
const
n
=
table
[
asked
];
const
request
=
v
.
split
(
"
?
"
)[
1
];
const
id
=
request
.
split
(
"
=
"
)[
1
];
if
(
id
)
{
const
n
=
table
[
id
];
if
(
n
)
{
window
.
location
.
replace
(
"
https://git.frama-c.com/pub/frama-c/-/issues/
"
+
n
);
}
else
{
var
not_found
=
document
.
getElementById
(
'
issue_not_found
'
);
not_found
.
textContent
=
"
Issue #
"
+
asked
+
"
not found
"
;
}
if
(
n
)
{
window
.
location
.
replace
(
"
https://git.frama-c.com/pub/frama-c/-/issues/
"
+
n
);
}
else
{
not_found
.
textContent
=
"
Issue #
"
+
id
+
"
not found
"
;
}
}
else
{
not_found
.
textContent
=
"
Unrecognized request
"
+
request
;
}
}
</script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment