The guide and the rules page keep the room they were opened from, and carry it to each other and back

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Jm2auWk6RP71CjaAb4FMoG
This commit is contained in:
Eric Wagoner
2026-09-23 19:13:11 -04:00
co-authored by Claude Fable 5.1
parent c0254e3fe9
commit baab21a0a7
3 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -123,7 +123,7 @@
{/if}
{/if}
<button type="button" class="quiet" onclick={() => (prefsOpen = true)}>Preferences</button>
<a class="quiet" href="/guide">How to play</a>
<a class="quiet" href={room ? `/guide?room=${roomId}` : '/guide'}>How to play</a>
<a class="quiet" href={room ? `/rules?room=${roomId}` : '/rules'}>Rules</a>
{#if room}
<button type="button" class="quiet" title="Something behaved unexpectedly? Tell the keeper." onclick={() => (reporting = true)}>Report</button>
@@ -182,7 +182,7 @@
{/if}
<footer class="colophon">
<p>__NAME__. <a href="/rules">Read the full rules</a>. A rule read wrong or a bug found: <a href="mailto:eric@ericwagoner.com">send word</a>.</p>
<p>__NAME__. <a href={room ? `/rules?room=${roomId}` : '/rules'}>Read the full rules</a>. A rule read wrong or a bug found: <a href="mailto:eric@ericwagoner.com">send word</a>.</p>
</footer>
<style>