Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mastofe
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Claire
mastofe
Commits
1ba2a010
Verified
Commit
1ba2a010
authored
Mar 29, 2018
by
Morgan Bazalgette
Committed by
Haelwenn
Apr 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix going to /web and getting redirected to /web/web
parent
8b307a6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/javascript/flavours/glitch/util/main.js
app/javascript/flavours/glitch/util/main.js
+1
-1
app/javascript/mastodon/main.js
app/javascript/mastodon/main.js
+1
-1
No files found.
app/javascript/flavours/glitch/util/main.js
View file @
1ba2a010
...
...
@@ -12,7 +12,7 @@ function main() {
if
(
window
.
history
&&
history
.
replaceState
)
{
const
{
pathname
,
search
,
hash
}
=
window
.
location
;
const
path
=
pathname
+
search
+
hash
;
if
(
!
(
/^
\/
web
[
$
/]
/
).
test
(
path
))
{
if
(
!
(
/^
\/
web
(
$|
\/)
/
).
test
(
path
))
{
history
.
replaceState
(
null
,
document
.
title
,
`/web
${
path
}
`
);
}
}
...
...
app/javascript/mastodon/main.js
View file @
1ba2a010
...
...
@@ -12,7 +12,7 @@ function main() {
if
(
window
.
history
&&
history
.
replaceState
)
{
const
{
pathname
,
search
,
hash
}
=
window
.
location
;
const
path
=
pathname
+
search
+
hash
;
if
(
!
(
/^
\/
web
[
$
/]
/
).
test
(
path
))
{
if
(
!
(
/^
\/
web
(
$|
\/)
/
).
test
(
path
))
{
history
.
replaceState
(
null
,
document
.
title
,
`/web
${
path
}
`
);
}
}
...
...
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