Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking the edit button on a folder mapped page links to a blank screen. #486

Open
dylandepass opened this issue Feb 27, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@dylandepass
Copy link
Member

dylandepass commented Feb 27, 2025

We should likely disable the edit button when there’s no source document. The Admin API doesn’t provide a reliable way to determine if the resource is folder-mapped or to locate the default source document as a fallback when edit is clicked.

{
	"webPath": "/products/hollister-backyard-sweatshirt/mh05",
	"resourcePath": "/products/hollister-backyard-sweatshirt/mh05.md",
	"live": {
		"url": "https://main--aem-boilerplate-commerce--hlxsites.hlx.live/products/hollister-backyard-sweatshirt/mh05",
		"status": 404,
		"contentBusId": "helix-content-bus/40b5fa1953019ef8aae1d581ed6fec610198c806f67247ec96653904ccf/live/products/hollister-backyard-sweatshirt/mh05.md",
		"permissions": [
			"delete",
			"delete-forced",
			"list",
			"read",
			"write"
		]
	},
	"preview": {
		"url": "https://main--aem-boilerplate-commerce--hlxsites.hlx.page/products/hollister-backyard-sweatshirt/mh05",
		"status": 404,
		"contentBusId": "helix-content-bus/40b5fa1953019ef8aae1d581ed6fec610198c806f67247ec96653904ccf/preview/products/hollister-backyard-sweatshirt/mh05.md",
		"permissions": [
			"delete",
			"delete-forced",
			"list",
			"read",
			"write"
		]
	},
	"edit": {},
	"code": {
		"status": 404,
		"codeBusId": "helix-code-bus/hlxsites/aem-boilerplate-commerce/main/products/hollister-backyard-sweatshirt/MH05",
		"permissions": [
			"delete",
			"delete-forced",
			"read",
			"write"
		]
	},
	"links": {
		"status": "https://admin.hlx.page/status/hlxsites/aem-boilerplate-commerce/main/products/hollister-backyard-sweatshirt/mh05",
		"preview": "https://admin.hlx.page/preview/hlxsites/aem-boilerplate-commerce/main/products/hollister-backyard-sweatshirt/mh05",
		"live": "https://admin.hlx.page/live/hlxsites/aem-boilerplate-commerce/main/products/hollister-backyard-sweatshirt/mh05",
		"code": "https://admin.hlx.page/code/hlxsites/aem-boilerplate-commerce/main/products/hollister-backyard-sweatshirt/mh05",
		"logout": "https://admin.hlx.page/logout/hlxsites/aem-boilerplate-commerce/main"
	}
}
@dylandepass dylandepass added the bug Something isn't working label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant