Skip to content

Commit

Permalink
fix: Do not serve UI on special pages.
Browse files Browse the repository at this point in the history
Fixes #1034
  • Loading branch information
RubenVerborgh committed Nov 2, 2021
1 parent e1a4ef2 commit 8c9887f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/ldp/handler/components/error-handler.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"errorHandler": {
"comment": "Changes an error into a valid representation to send as a response.",
"@type": "ConvertingErrorHandler",
"converter": { "@id": "urn:solid-server:default:RepresentationConverter" },
"converter": { "@id": "urn:solid-server:default:UiEnabledConverter" },
"showStackTrace": { "@id": "urn:solid-server:default:variable:showStackTrace" }
}
}
Expand Down
2 changes: 1 addition & 1 deletion config/storage/middleware/stores/converting.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"comment": "Converts all outgoing resources based on the preferences.",
"@id": "urn:solid-server:default:ResourceStore_Converting",
"@type": "RepresentationConvertingStore",
"options_outConverter": { "@id": "urn:solid-server:default:RepresentationConverter" }
"options_outConverter": { "@id": "urn:solid-server:default:UiEnabledConverter" }
}
]
}
11 changes: 10 additions & 1 deletion config/util/representation-conversion/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@id": "urn:solid-server:default:RepresentationConverter",
"@type": "WaterfallHandler",
"handlers": [
{ "@id": "urn:solid-server:default:DefaultUiConverter" },
{ "@id": "urn:solid-server:default:MarkdownToHtmlConverter" },
{ "@id": "urn:solid-server:default:DynamicJsonToTemplateConverter" },
{
Expand All @@ -39,6 +38,16 @@
]
}
]
},

{
"comment": "Converts either to a default UI or to a representation.",
"@id": "urn:solid-server:default:UiEnabledConverter",
"@type": "WaterfallHandler",
"handlers": [
{ "@id": "urn:solid-server:default:DefaultUiConverter" },
{ "@id": "urn:solid-server:default:RepresentationConverter" }
]
}
]
}

0 comments on commit 8c9887f

Please sign in to comment.