Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Nov 21, 2024
1 parent b0c11e8 commit b67ab28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/experimental/site-editor-permalinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function gutenberg_rewrite_wp_admin_permalinks() {
);

add_rewrite_rule(
'^wp-admin/post/?(.*)?',
'^wp-admin/posts/?(.*)?',
'wp-admin/admin.php?page=gutenberg-posts-dashboard&p=$1',
'top'
);
Expand Down Expand Up @@ -138,7 +138,7 @@ function gutenberg_redirect_posts_dataviews_to_post() {
return;
}

wp_redirect( admin_url( '/post' ), 301 );
wp_redirect( admin_url( '/posts' ), 301 );
exit;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/posts-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function PostsApp() {
return (
<GlobalStylesProvider>
<UnsavedChangesWarning />
<RouterProvider routes={ routes } basePath="/wp-admin/post">
<RouterProvider routes={ routes } basePath="/wp-admin/posts">
<Layout />
</RouterProvider>
</GlobalStylesProvider>
Expand Down

0 comments on commit b67ab28

Please sign in to comment.