Skip to content

Commit c0071e4

Browse files
[5.x] Prevent redirect when creating term via fieldtype (#13595)
1 parent ae5d67a commit c0071e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/js/components/terms/PublishForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ export default {
504504
}
505505
506506
// If the edit URL was changed (i.e. the term slug was updated), redirect them there.
507-
else if (window.location.href !== response.data.data.edit_url) {
507+
else if (!this.isInline && window.location.href !== response.data.data.edit_url) {
508508
window.location = response.data.data.edit_url;
509509
}
510510

0 commit comments

Comments
 (0)