Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
384
Merge Requests
62
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
cd149973
Commit
cd149973
authored
1 hour ago
by
Emiliano Balbuena
Browse files
Options
Download
(wip): Get query string
parent
4aa92b4c
fix/ssr-email-confirmation
1 merge request
!761
WIP: Fix email confirmation on SSR
Pipeline
#115002530
running with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
src/app/common/services/configs.service.ts
View file @
cd149973
...
...
@@ -9,10 +9,11 @@ export class ConfigsService {
constructor
(
private
client
:
Client
,
private
requestUrl
:
RequestUrlService
)
{}
async
loadFromRemote
()
{
console
.
log
(
this
.
requestUrl
.
get
());
try
{
this
.
configs
=
await
this
.
client
.
get
(
'
api/v1/minds/config
'
);
this
.
configs
=
await
this
.
client
.
get
(
`api/v1/minds/config?
${
this
.
requestUrl
.
getQueryString
()}
`
,
null
/* ALWAYS NULL */
);
}
catch
(
err
)
{
console
.
error
(
err
);
}
...
...
This diff is collapsed.
src/app/common/services/request-url.service.ts
View file @
cd149973
...
...
@@ -17,6 +17,12 @@ export class RequestUrlService {
requestUrl
:
this
.
requestUrl
,
});
return
this
.
requestUrl
;
return
this
.
requestUrl
||
''
;
}
getQueryString
()
{
const
url
=
this
.
get
().
split
(
'
?
'
,
2
);
return
url
[
1
]
||
''
;
}
}
This diff is collapsed.
Please
register
or
sign in
to comment