Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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
Show more breadcrumbs
AlekSIS®
Official
AlekSIS-Core
Commits
15e4167c
Commit
15e4167c
authored
1 year ago
by
Hangzhi Yu
Browse files
Options
Downloads
Patches
Plain Diff
Pass query string when navigating legacy pages
parent
743f4360
No related branches found
No related tags found
3 merge requests
!1237
Release 3.0
,
!1222
Resolve "Query strings do not get passed when navigating legacy pages in SPA"
,
!1183
Release 3.0
Checking pipeline status
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.rst
+1
-0
1 addition, 0 deletions
CHANGELOG.rst
aleksis/core/frontend/components/LegacyBaseTemplate.vue
+2
-1
2 additions, 1 deletion
aleksis/core/frontend/components/LegacyBaseTemplate.vue
with
3 additions
and
1 deletion
CHANGELOG.rst
+
1
−
0
View file @
15e4167c
...
...
@@ -33,6 +33,7 @@ Fixed
* The `Stop Impersonation` button is not shown due to an oversee when changing the type of the whoAmI query to an object of UserType
* Offline fallback page for legacy pages was misleading sometimes.
* Route changes in the Legacy-Component iframe didn't trigger a scroll to the top
* Query strings did not get passed when navigating legacy pages inside of the SPA.
`3.0b3`_ - 2023-03-19
---------------------
...
...
This diff is collapsed.
Click to expand it.
aleksis/core/frontend/components/LegacyBaseTemplate.vue
+
2
−
1
View file @
15e4167c
...
...
@@ -59,13 +59,14 @@ export default {
const
location
=
this
.
$refs
.
contentIFrame
.
contentWindow
.
location
;
const
url
=
new
URL
(
location
);
const
path
=
url
.
pathname
.
replace
(
/^
\/
django/
,
""
);
const
pathWithQueryString
=
path
+
encodeURI
(
url
.
search
);
const
routePath
=
path
.
charAt
(
path
.
length
-
1
)
===
"
/
"
&&
this
.
$route
.
path
.
charAt
(
path
.
length
-
1
)
!==
"
/
"
?
this
.
$route
.
path
+
"
/
"
:
this
.
$route
.
path
;
if
(
path
!==
routePath
)
{
this
.
$router
.
push
(
path
);
this
.
$router
.
push
(
path
WithQueryString
);
}
// Show loader if iframe starts to change its content, even if the $route stays the same
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment