main-content.tsx

Discovered 3 months ago
15 views
4 downloads

File Overview

You are viewing details for main-content.tsx. This file matches queries related to main-content.tsx and was indexed by our automated crawlers.

Live Preview

TSX file No preview available for this file type.
Download File

File Overview

You are viewing details for main-content.tsx. This file matches queries related to main-content.tsx and was indexed by our automated crawlers.
Login to view source details.

"View file"
Type
TSX
Indexed
Aug 01, 2026
Source Domain
Hidden
Status
Active
Views
15
Downloads
4
File Size
—

How We Found This File

This listing was created automatically by the AutoFileSearch web crawler on August 1, 2026. Our crawler continuously scans publicly accessible web pages, identifies links pointing to downloadable files, and records the surrounding context — including page titles, anchor text, and page descriptions — to build a searchable index.

More about our indexing process

What we index: The public URL of the file, the text of the link pointing to it, the page title and description of the hosting page, and a snippet of surrounding text. We do not download, store, or mirror the file itself.

Source verification: Files are periodically re-checked to confirm they are still accessible. Pages marked "Active" were reachable at last check. A "Removed" badge means the source URL returned a 404 or similar error.

AI enrichment: For files where the surrounding context is sparse, we use an AI language model to generate a plain-English description of what the file likely contains, based on its filename, extension, and the page content we indexed.

Discovery Context

Surrounding Context
"View file"
Current Page Info
Page Title Fixed contributor profile editor navigation to posts page by rob-ghost · Pull Request #25629 · TryGhost/Ghost · GitHub
Meta Description Summary Contributors couldn't close their profile editor modal because a race condition would redirect them back. The modal's external navigation to /posts was being overridden by a useEffect that detected the route change and redirected contributors back to their profile. the issue was AdminXSettings is always mounted and it has a side effect to re-direct to the user profile page if the User isn't permitted to see all the settings. This effect was running all the time (because the settings are always mounted) and it was affecting the navigation away from the profile. Rather than amend the effect, or conditionally mount the settings (too many changes), I opted to lift the permissions for the settings to the router level (which should be responsible for routes and their permissions) which fixes the issue. NoteRestricts Authors/Contributors to their own profile via Ember routing, removes React-side redirect, updates modal close navigation, and adapts tests. Routing/Access Control: Add Ember beforeModel guard in ghost/admin/app/routes/settings-x.js to redirect Authors/Contributors to staff/<slug> and block other settings paths. React UI: In main-content.tsx, stop React-side redirects; hide main settings entirely for non-canAccessSettings users so only the profile modal renders via routing. In user-detail-modal.tsx, change close behavior for non-settings users to external '' route to let the shell handle navigation. Tests: Update acceptance tests to navigate directly to /#/settings/staff/owner and verify profile-only view for Author/Contributor; remove URL assertions. Written by Cursor Bugbot for commit 0623ad8. This will update automatically on new commits. Configure here.

Disclaimer: AutoFileSearch is a public file index. We do not host, store, or distribute any files. All links point to their original third-party sources. This listing was created by our automated web crawlers and indexes a publicly accessible file. If you are the rights holder and believe this listing should be removed, please submit a DMCA removal request.

Access File

15 people viewed this file

Download Now Visit Source
* Premium access or one-time unlock required.