Fix broken View link on idea generation complete
View URL was using adminUrl (wp-admin/?p=123) instead of siteUrl. Now uses home_url() for the frontend permalink. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -103,7 +103,7 @@
|
||||
|
||||
if (data.post_id) {
|
||||
var editUrl = config.adminUrl + 'post.php?post=' + data.post_id + '&action=edit';
|
||||
var viewUrl = config.adminUrl + '?p=' + data.post_id;
|
||||
var viewUrl = config.siteUrl + '?p=' + data.post_id;
|
||||
html += ' — <a href="' + editUrl + '">Edit</a>';
|
||||
html += ' | <a href="' + viewUrl + '" target="_blank">View</a>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user