Skip to content

client: fix APP_URL usage - #31

Merged
Philipinho merged 2 commits into
mainfrom
fix-APP_URL
Jul 1, 2024
Merged

Philipinho merged 2 commits into
mainfrom
fix-APP_URL

Conversation

@Philipinho

Copy link
Copy Markdown
Member

This PR fixes the APP_URL usage on the frontend. The APP_URL is useful for building email links.
With this update, the frontend now relies on window.location.host when not in VITE dev mode.

Fixes #28 and the issue mentioned on HN.

@docmost docmost deleted a comment from CLAassistant Jul 1, 2024
@Philipinho
Philipinho merged commit d1ae117 into main Jul 1, 2024
@Philipinho
Philipinho deleted the fix-APP_URL branch July 2, 2024 13:12
vvzvlad pushed a commit to vvzvlad/gitmost that referenced this pull request Jun 21, 2026
…uard (docmost#31)

The cycle/self-embed/depth guard (PAGE_EMBED_MAX_DEPTH=5) lives only on the
client and is the sole protection against runaway nested rendering — and was
untested. Extract the inline predicates into pure, behavior-identical exported
helpers (isPageEmbedCycle, isPageEmbedTooDeep in the ancestry context;
filterPageEmbedOptions in the picker) so they're unit-testable without mounting
the heavy Tiptap NodeView, and add vitest coverage (20 tests): ancestry chain/
host accumulation, cycle (ancestor-in-chain + top-level self-embed), too-deep at
the cap, and picker host-exclusion.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
vvzvlad pushed a commit to vvzvlad/gitmost that referenced this pull request Jun 21, 2026
Reconcile the diverged develop (13 ahead / 20 behind) with gitea/develop.

Conflict resolution — html-embed: keep the local sandboxed-iframe model
(opaque-origin srcdoc, no role-gating) and supersede gitea's same-origin
strip/kill-switch hardening (docmost#26/docmost#28/docmost#29/docmost#30). The 4 conflicted html-embed
source files resolve to the local version; the 3 strip-era spec files stay
deleted. The strip apparatus (stripDisallowedHtmlEmbedNodes,
collectHtmlEmbedSources, canAuthorHtmlEmbed, htmlEmbedAllowed) is fully gone.

Integrate gitea's page-templates / page-embed work (docmost#31-docmost#40) cleanly.

Fix an auto-merge arity mismatch: two new gitea page-template specs
constructed TransclusionService with the pre-sandbox 11-arg signature; drop
the trailing workspaceRepo argument to match the reduced 10-arg constructor.

Verified: server + client tsc --noEmit clean; jest (html-embed + transclusion)
14 suites / 119 tests passing.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Blank page on new install / Workspace not found.

1 participant