Skip to content

Commit

Permalink
chore: adding path information to the hostory state
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodek committed Nov 27, 2019
1 parent 0ca28f8 commit 508fe6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ApiConsoleApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export class ApiConsoleApp extends ApiConsole {
_apiNavigationOcurred(e) {
super._apiNavigationOcurred(e);
const { selected, type } = e.detail;
const url = `#docs/${type}/${selected}`;
const url = `${window.location.pathname}#docs/${type}/${selected}`;
history.pushState({
page: 'docs',
type,
Expand Down

0 comments on commit 508fe6b

Please sign in to comment.