Skip to content

Commit

Permalink
Fix redirect after doc save.
Browse files Browse the repository at this point in the history
Fixes #741.
  • Loading branch information
boonebgorges committed Dec 20, 2023
1 parent 46ea36f commit 3189724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/query-builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ function save( $passed_args = array() ) {
}

if ( $result['redirect'] == 'single' ) {
$redirect_url = bp_docs_get_archive_link();
$redirect_url = bp_docs_get_doc_link( $this->doc_id );
} elseif ( $result['redirect'] == 'edit' ) {
$redirect_url = bp_docs_get_doc_edit_link( $this->doc_id );
} elseif ( $result['redirect'] == 'create' ) {
Expand Down

0 comments on commit 3189724

Please sign in to comment.