►
From YouTube: Jenkins Docs - Creating a redirect on jenkins io
Description
Video segment showing how a documentation developer can create a web page redirect on the www.jenkins.io site. Redirecting a page can help users by automatically taking them to the best page for their need.
A
So
the
problems
the
problems
I
encountered
was,
I
thought
I
could
just
follow
the
pattern
of
redirects
that
were
in
the
in
the
repository
and
then
I
attempted
to
make
run
and
confirm
that
the
redirects
were
working
and
couldn't
test
them.
So
the
first
question
is:
what's
the
format
for
a
redirect
and
then
the
second
question
is:
how
do
I
test
to
be
sure
the
redirect
worked
before
I
submit
the
pull
request?
B
B
Let's
look
how
our
redirects
implemented
actually
yeah.
If
you
go
to
the
repository
in
content,
easiest
way
to
find
redirects,
there
is
just
a
redirect:
folder,
okay,.
B
Are
not
okay,
they
are
not.
So
that's
the
thing,
because
redirect
is
basically
the
same
as
everything
else.
It
just
has
a
special
layout
type,
which
is
called
redirect
and
when
the
website
is
generated,
when
this
layout
is
passed,
the
page
basically
injects
information,
so
either
redirect
or
localized
redirect,
depending
on
your
browser
like
so,
basically,
you
get
redirected
to
property
url.
If
you
navigate
to
link
like.
A
B
Okay,
now
it
doesn't
work.
So
let's
is
because
redirect
so
if
we
put
redirect
it
should
be
working
and
it
shouldn't
really
matter
whether
there
is
trading
silence
or
not.
Okay,
all
right.
Okay,
it
matters
if
you
configure
redirects
by
vc
host.
So
if
you
use
always
a
way
to
define
redirects
here,
then
it
really
matters.
B
Okay,
just
my
this
host
yeah.
It's
actually,
I
think
you
mean
vhost.com.
Oh
we
host
right,
yeah,
we
host
conf
and
this
one
we
need
for
confluence.
Let's
see
yeah,
you
can
see
a
bunch
of
redirects
here.
Yes,
it
doesn't
matter
whether
you
put
slash
or
not
same
it
matters
for
engine
config.
B
A
B
B
A
B
Okay,
so
in
our
case,
what
it
means
we
have
a
link
which
is
projects
jenkins
x.
So
here,
let's
sorry
so
here
we
go
to
content
and
not
the
content,
so
projects
and
then
projects.
There
is
no
jenkins
x
at
all
because
at
some
point
it
was
moved
to
a
separate
project
and
then
basically.
B
B
So
what
I
suggest
to
do
do
exactly
the
same
for
jenkins
x,
because
we
need
to
retain
url
structure
and
our
only
way
is
to
actually
put
a
link
right
inside
still
what
you
need
to
be
keep
in
mind
that,
for
example,
this
page
projects
listing
is
auto-generated,
oh
well.
No,
it's
not
actually
auto-generated,
it's
just
fancy
syntax,
so
it
should
be.
Okay,
if
you
just
add
a
additional
project,
there.
A
B
A
B
Yeah
or
just
type
for
type
check
for
type
of
the
page,
so,
for
example,
I
do
it
in
other
locations.
B
So
let
let
me
yeah,
I
believe
that
adopters
p,
which
is
implemented
like
that
for
doctors,
you
can
see
that
there
is
hummel.
This
hummel
basically
takes
information
from
data
adopters
and
yeah.
Now
there
is
no
longer
a
type
check,
I
believe,
but
yeah.
B
A
B
B
Well,
it
doesn't
matter,
you
can
do
it
either
way:
okay,
all
right
yeah,
and
in
this
task
we
were
asked
to
actually
redirect
to
this
jenkins
page.
So
this
is
exactly
what
we
will
do.
We
will
put
a
redirect
url
here.
Obviously
they
don't
have
relativization,
urls,
etc
and
yeah.
We
can
just
keep
it
as
this,
so
in
redirects
you
basically
have
two
ways.
One
way
is
to
put
absolute
link.
Another
way
is
to
actually
put
a
relative
link,
though
I'm
not
100
sure
whether
we
actually
use
it
anyway.
B
These
days
but
yeah
related
redirect
links
should
also
work.
A
B
Okay,
okay
and
yeah,
I'm
just
a
chicken,
so
relative
urls
should
be
also
see
used
for
sex
and
study
yeah.
When
you
replace
the
core
sex
installer
yeah,
I
used
relative
redirects
and
they
were
okay,
great
okay.
So
here
what
we
added?
We
added
the
jenkins
text
page
and
projects
which
points
somewhere.
Now
I
will
just
launch
the.
B
Site
so
it
may
take
a
while,
but
there
should
be
no
magic.
It
should
work.
B
What
you
need
to
keep
in
mind
that
since
we
modify
metadata,
the
change
won't
be
reliably
applied
until
you
reload
the
same
time
after
recent
updates
of
our
struct.
It
actually
sometimes
works.
So
if
you
want,
we
will
verify
it
once
it
loads.
So
I'm
not
sure
I
understand
what
you
mean
by
by
reload.
What
what
do
you
mean
there?
Is
that
when
you
develop,
let's
say
common
content,
like
pages
like
that,
you
can
just
write
text,
it'll
load
the
page
in
your
browser,
and
you
will
see
your
content.
B
It
will
not
be
a
case
for
this
page,
if
I
recall
correctly,
but
yeah,
let's
try
it.
Okay,
yeah.
A
B
Yeah,
this
experience
actually
greatly
improves
because
we
also
update
dependencies.
So,
for
example,
now
images
will
get
updated
if
they
change,
but
they
still
need
to
be
indexed.
So,
if
you
add
new
images
same
as,
if
you
need
new
pages,
you
have
to
restart
otherwise
these
pages
will
not
be
discovered
the
same,
for
example,
for
data
files.
So
if
you
modify
anything
there
like
that
or
unfortunately
change
log,
then
you
need
to
see
the
effective
result.
A
Okay,
now
now
I've
had
while
we're
waiting
for
that
to
generate,
and
as
soon
as
it's
done,
we
can
certainly
go
back
to
it,
but
I've
had
one
more
time.
Okay,
I've
had
one
more
challenge
with
generation
that
I'm
not
quite
sure
how
to
resolve,
and
that's
with
the
change
log.
The
new
downloads
page
includes
a
computation
that
uses
the
sha-256
hash
in
the
page
and
if
I
reference
a
bill
that
does
not
yet
exist.
A
As
far
as
I
can
tell
page
generation
fails,
is
there
a
way
for
me
to
conditional
that
so
that
it
doesn't
so
that,
instead
of
failing
it
will
just
leave
the
sha
256
blank
or
some.
A
In
the
downloads
right,
yes
yeah,
so
I
usually
navigate
to
the
changelog
page
by
going
through
downloads,
and
if
I'm
referencing
a
build
that
does
not
yet
exist.
The
downloads
page
doesn't
work
because
I
think
because
it
can't
find
the
shot
256
for
that
that
build
or
it's
trying
to
get
some
other
data
about
the
build.
Have
you
reported.
B
Okay,
so
here
you
can
see
the
code
while
we
wait,
so
you
can
see
that
it
actually
goes
to
jenkins
maven
repository
and
reads
the
entire
sh
file
so
yeah
it
will
fail
if
open
operation
fails.
B
So
here
the
tricky
thing
is
to
actually
understand
what
happens,
because
so
this
part
is
basically
part
of
ruby
code
inserted
into
the
jelly
file
in
the
hammer
file.
Sorry,
so
it's
not
enough!
A
B
You
want
a
solution
which
is
guaranteed
to
work.
You
can
replace
this
code
by
ruby.
You
can
put
it
somewhere,
just
a
second,
for
example,
when
we
do
that.
B
Oh
nice,
okay,
not
not
these
ones,
just
a
second
I'm
trying
to
remember
where
you
put
it
but
yeah.
You
can
put
some
ruby
coat
right
inside
the
repository
and
it
could
be
the
conditional
open,
then
yeah,
so
just
a
second,
and
also
you
can
put
it
in
other
components.
For
example,
this
is
how
we
pre-vision
macros
macros
are
written
in
ruby,
but
yeah
again
you
shouldn't
really
need
it.
B
Way
to
get
it
is
like
that,
so
here
you
can
see
that,
for
example,
there
is
already
some
content
text
which
puts
great
guide
and
it
does
some
magic
in
ruby.
So
basically
you
can
just
to
track
edge
and
whatever
other
stuff
needed
there
and
hence
prevent
the
error.
B
B
Okay,
so
while
we
were
talking,
our
site
has
started
for
me
yeah.
This
recording
takes
extremely
long
time
on
this
laptop.
B
B
B
So
yeah
you
can
take
it
as
a
home
task
right
but
yeah
whatever.
So
what
we
need
to
check
so
here
it's
replaced
to
redirect.
B
So
it's
not
redirect
it's
just
hardcoded
in
the
definition.
We
can
check
it
if
you
want,
but
it's
definitely
hard
coded.
Okay.
I
shouldn't
have
been
opening
so
many
tabs,
so
projects
jenkins
yeah
it's
in
index.
So
here
you
can
just
scroll
to
jenkins
x
and
you
can
see
this
content
there.
A
B
Is
right:
okay,
okay,
now,
let's
try
our
redirect
projects
jenkins
x.
B
B
B
A
B
Well,
you
will
have
an
opportunity
to
do
that
because
I'm
doing
241
one
link
and
you
still
have
that's
true-
I've
got
to
do
the
t-mobile
and
yeah
good,
okay,
yeah
I'll,
just
put
it
since
I
have
it
anyway,.
A
B
Well,
evergreen
yeah.
We
have
an
action
item
to
actually
park
it.
It's
it's
a
bit
more
than
that
and
yeah
for
evergreen.
It's
already
a
bit
strange
because
it's
listed
as
subproject.
It's
not
listed
here
right
because
we
dropped
it
at
some
point.
Okay,
so
we
then
remove
jenkins
x
and
30,
and
we
also
need
to
update
the
row
here
to
large.
B
B
B
A
B
It
has
I'm
not
actively
using
that.
Okay
yeah.
I
believe
that
it's
something
okay,
hubcrap
yeah,
so
that
is
yeah
like
yeah.
It
looks
like
there
are
several
good
okay.
Well,
basically,
this
console
is
yeah.
You
cannot
hop
to
just
your
pass
if
you
want,
so
it
depends
on
what
is
your
preferences
right
in
my
case,
yeah.