Skip to content
Snippets Groups Projects
Commit 234fda43 authored by Benoit Alessandroni's avatar Benoit Alessandroni
Browse files

Fixing the user retrieval

parent 7e82a4ad
No related branches found
No related tags found
1 merge request!137Fix router bug
Pipeline #5026 failed with stage
in 1 hour
.block_log.block_creat_count.no_shadow .block_log.block_creat_count.no_shadow
sib-link(class="backlink", next="entrepreneur-resource-list") sib-link(class="backlink", next="entrepreneur-dashboard")
.like .like
p.backlink p.backlink
i.fas.fa-times i.fas.fa-times
......
...@@ -78,12 +78,13 @@ class CoopStarterLoginComponent extends HTMLElement { ...@@ -78,12 +78,13 @@ class CoopStarterLoginComponent extends HTMLElement {
//If the url is different after the treatment, we reload with the good url //If the url is different after the treatment, we reload with the good url
if(newUrl !== window.location.href){ if(newUrl !== window.location.href){
var newRoute = new URL(newUrl).pathname.replace(/^\/([a-z]{2})\//, "") console.log(newUrl);
var newRoute = new URL(newUrl).pathname.replace(/^\/([a-z]{2})\//, "");
console.log(newRoute.split(/\/(.*?)\//)[1]);
window.dispatchEvent( window.dispatchEvent(
new CustomEvent('requestNavigation', { new CustomEvent('requestNavigation', {
detail: { detail: {
route: 'entrepreneur-resource-detail', route: newRoute.split(/\/(.*?)\//)[1],
resource: { "@id": this.decodeId(newRoute.split(/@(.+)/)[1]) } resource: { "@id": this.decodeId(newRoute.split(/@(.+)/)[1]) }
} }
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment