Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Toolkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Web Component Framework
Toolkit
Compare revisions
ebbe7a53b4f39f61bb80095d55c2654930369f7e to 1c81f7e344a4fdd5a3aec0612f5ba325b64fbad9
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
dbp/web-components/toolkit
Select target project
No results found
1c81f7e344a4fdd5a3aec0612f5ba325b64fbad9
Select Git revision
Swap
Target
dbp/web-components/toolkit
Select target project
987FCF504483CBC8/toolkit
1 result
ebbe7a53b4f39f61bb80095d55c2654930369f7e
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
Fix typo
· 558e5184
Bekerle, Patrizio
authored
3 years ago
558e5184
Don't push /root on the browser history
· 1c81f7e3
Bekerle, Patrizio
authored
3 years ago
1c81f7e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
packages/app-shell/src/router.js
+6
-2
6 additions, 2 deletions
packages/app-shell/src/router.js
toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs
+1
-1
1 addition, 1 deletion
toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs
with
7 additions
and
3 deletions
packages/app-shell/src/router.js
View file @
1c81f7e3
...
...
@@ -44,7 +44,9 @@ export class Router {
// In case of a router redirect, set the new location
if
(
newPathname
!==
oldPathName
)
{
const
referrerUrl
=
location
.
href
;
window
.
history
.
replaceState
({},
''
,
newPathname
);
if
(
!
newPathname
.
endsWith
(
'
/root
'
))
{
window
.
history
.
replaceState
({},
''
,
newPathname
);
}
this
.
dispatchLocationChanged
(
referrerUrl
);
}
this
.
setState
(
page
);
...
...
@@ -66,7 +68,9 @@ export class Router {
if
(
newPathname
===
oldPathname
)
return
;
const
referrerUrl
=
location
.
href
;
window
.
history
.
pushState
({},
''
,
newPathname
);
if
(
!
newPathname
.
endsWith
(
'
/root
'
))
{
window
.
history
.
pushState
({},
''
,
newPathname
);
}
this
.
dispatchLocationChanged
(
referrerUrl
);
});
}
...
...
This diff is collapsed.
Click to expand it.
toolkit-showcase/assets/dbp-toolkit-showcase.html.ejs
View file @
1c81f7e3
...
...
@@ -8,7 +8,7 @@
<link
rel=
"shortcut icon"
type=
"image/x-icon"
href=
"<%= getPrivateUrl('favicon.ico') %>"
>
<link
rel=
"icon"
type=
"image/svg+xml"
href=
"<%= getPrivateUrl('favicon.svg') %>"
sizes=
"any"
>
<!-- PWA man
f
iest file -->
<!-- PWA mani
f
est file -->
<link
rel=
"manifest"
href=
"<%= getUrl(name + '.manifest.json') %>"
>
<!-- Loading spinner -->
...
...
This diff is collapsed.
Click to expand it.