Fix About HTML path

This commit is contained in:
Alex Gleason 2020-04-27 15:48:51 -05:00
parent fd2d36e3c3
commit c2a3bc20f8
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -6,7 +6,7 @@ export const FETCH_ABOUT_PAGE_FAIL = 'FETCH_ABOUT_PAGE_FAIL';
export function fetchAboutPage(slug = 'index') {
return (dispatch, getState) => {
dispatch({ type: FETCH_ABOUT_PAGE_REQUEST, slug });
return api(getState).get(`/soapbox/about/${slug}.html`).catch(error => {
return api(getState).get(`/instance/about/${slug}.html`).catch(error => {
dispatch({ type: FETCH_ABOUT_PAGE_FAIL, slug });
});
};