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:
peptiderepo
2026-04-20 02:11:32 +07:00
parent 0cde08757b
commit 14f1cf0351
2 changed files with 2 additions and 1 deletions

View File

@@ -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 += ' &mdash; <a href="' + editUrl + '">Edit</a>';
html += ' | <a href="' + viewUrl + '" target="_blank">View</a>';
}