Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 6d1a393

Browse files
authored
Fix reloading issue for DojoDetails page where params were being spli… (#241)
* Fix reloading issue for DojoDetails page where params were being splitted * split and join instead of removing the split to ensure URI is still encoded, by having Vue pick the URI as different params of the URI * Ensure that path is an array when loading the page from the name instead of the id
1 parent fd09ecb commit 6d1a393

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/dojos/cd-dojo-details.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,13 @@
249249
},
250250
async created() {
251251
this._country = this.country;
252-
this._path = this.path;
252+
if (this.path) {
253+
if (Array.isArray(this.path)) {
254+
this._path = this.path.join('/');
255+
} else {
256+
this._path = this.path;
257+
}
258+
}
253259
await Promise.all([
254260
this.loadDojoDetails(),
255261
this.loadCurrentUser(),

0 commit comments

Comments
 (0)