Skip to content

Commit

Permalink
add path to share url
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispyles committed Jul 1, 2024
1 parent b47834b commit bd4bc47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/game-state.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class GameStateService {

/** Returns a URL that includes query parameters to re-generate the current maze. */
getShareUrl(): string {
return `${window.location.origin}/?seed=${this.chooser.seed}`;
return `${window.location.origin}${window.location.pathname}?seed=${this.chooser.seed}`;
}

/** The current maze. */
Expand Down

0 comments on commit bd4bc47

Please sign in to comment.