Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed broken navigation menu links for private activities #90

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions platform/src/ActivityManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ class ActivityManager {
a.href += "&activities=" + this.activitiesUrl;
}

if (urlParamPrivateRepo()){
a.href += "&privaterepo=true"
}

li.appendChild(a);

var icon = document.createElement("span");
Expand Down
4 changes: 4 additions & 0 deletions platform/src/Playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,10 @@ if (urlParameters.has("code") && urlParameters.has("state") ){
} );
}

// Clean authentication parameters from url
urlParameters.delete("code");
urlParameters.delete("state");
window.history.replaceState({}, document.title, "/?" + urlParameters.toString());


function initialiseActivity(){
Expand Down