<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Title: Ghost 6.68+: "/edit" shortcut returns 404 because start.sh writes `admin` as a string]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Since our Ghost apps were updated to 6.68 (now 6.69, package 4.200.0), adding /edit to a post URL (e.g. <a href="https://site.com/my-post/edit/" target="_blank" rel="noopener noreferrer nofollow ugc">https://site.com/my-post/edit/</a>) returns a 404 instead of redirecting to the editor. It happens on all our Ghost apps, on two different Cloudron servers. Standard Ghost installs and Ghost(Pro) on the same version work fine (Ghost forum thread: <a href="https://forum.ghost.org/t/edit-is-not-redirecting-toward-backoffice-anymore/63947" target="_blank" rel="noopener noreferrer nofollow ugc">https://forum.ghost.org/t/edit-is-not-redirecting-toward-backoffice-anymore/63947</a>).</p>
<p dir="auto">Root cause, as far as I can tell from the sources:</p>
<ol>
<li>
<p dir="auto"><a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> rewrites the config on every boot with:</p>
<pre><code>json -I -f /app/data/config.production.json -e "this.admin = '${CLOUDRON_APP_ORIGIN}'"
</code></pre>
<p dir="auto">so <code>admin</code> is a string. Ghost expects an object: <code>"admin": { "url": "..." }</code>. Its defaults.json ships <code>"admin": { "redirects": true, "sessionMaxAgeMs": 15552000000 }</code>.</p>
</li>
<li>
<p dir="auto">Ghost only redirects /edit to the admin when <code>config.get('admin:redirects')</code> is truthy. Otherwise the entry controller calls next() and you get a 404 (core/frontend/services/routing/controllers/entry.ts).</p>
</li>
<li>
<p dir="auto">Up to 6.67 this was harmless: nconf looked up <code>admin:redirects</code> store by store and fell back to defaults.json. Since 6.68, Ghost builds one merged, frozen config tree (<code>createConfig(nconf.get())</code> in core/shared/config/loader.ts). In that merge the string replaces the whole default <code>admin</code> object, so <code>admin:redirects</code> (and probably <code>admin:sessionMaxAgeMs</code>) end up undefined.</p>
</li>
</ol>
<p dir="auto">Editing config.production.json by hand doesn't help, because <a href="http://start.sh" target="_blank" rel="noopener noreferrer nofollow ugc">start.sh</a> overwrites it on the next restart.</p>
<p dir="auto">Suggested fix: write <code>admin</code> as an object, and convert the old string format for existing installs, e.g.</p>
<pre><code>json -I -f /app/data/config.production.json \
    -e "this.admin = { url: '${CLOUDRON_APP_ORIGIN}' }"
</code></pre>
<p dir="auto">The "url follows admin" check above it (line ~27) would then need to compare <code>admin.url</code>, or the string value forinstalls not yet migrated, against <code>url</code>.</p>
<p dir="auto">Possible workaround in the meantime (not tested yet): env vars take priority over the config file in Ghost's nconf setup, so this should restore the default:</p>
<pre><code>cloudron env set --app &lt;app&gt; admin__redirects=true admin__sessionMaxAgeMs=15552000000
</code></pre>
<p dir="auto">Happy to test a package build if that helps.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://forum.cloudron.io/topic/16091/title-ghost-6.68-edit-shortcut-returns-404-because-start.sh-writes-admin-as-a-string</link><generator>RSS for Node</generator><lastBuildDate>Tue, 24 Nov 2026 06:04:04 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/16091.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 08 Oct 2026 16:10:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Title: Ghost 6.68+: "/edit" shortcut returns 404 because start.sh writes `admin` as a string on Thu, 15 Oct 2026 08:51:21 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jrl-abstract27" aria-label="Profile: jrl-abstract27">@<bdi>jrl-abstract27</bdi></a><br />
The update <a href="https://forum.cloudron.io/post/130902">https://forum.cloudron.io/post/130902</a> should have resolved this issue.<br />
Marking the topic as solved for now, but please give feedback if you can confirm the fix as well.</p>
]]></description><link>https://forum.cloudron.io/post/131014</link><guid isPermaLink="true">https://forum.cloudron.io/post/131014</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Thu, 15 Oct 2026 08:51:21 GMT</pubDate></item><item><title><![CDATA[Reply to Title: Ghost 6.68+: "/edit" shortcut returns 404 because start.sh writes `admin` as a string on Mon, 12 Oct 2026 09:44:20 GMT]]></title><description><![CDATA[<p dir="auto">Hello <a class="plugin-mentions-user plugin-mentions-a" href="/user/jrl-abstract27" aria-label="Profile: jrl-abstract27">@<bdi>jrl-abstract27</bdi></a><br />
Thanks for reporting. I will look into it.</p>
]]></description><link>https://forum.cloudron.io/post/130857</link><guid isPermaLink="true">https://forum.cloudron.io/post/130857</guid><dc:creator><![CDATA[james]]></dc:creator><pubDate>Mon, 12 Oct 2026 09:44:20 GMT</pubDate></item></channel></rss>