path correction

This commit is contained in:
sandhiya-hepl
2026-07-15 17:23:08 +05:30
parent e460416d00
commit d73e46ec61
10 changed files with 14 additions and 14 deletions
+4 -4
View File
@@ -100,7 +100,7 @@ function LoginPreview() {
<h1>Content <span>Manager</span></h1>
<p>Preview the live website before you sign in. Edits publish instantly after login.</p>
</div>
<a href="/" target="_blank" rel="noopener noreferrer" className="login-preview-link">
<a href={BASE} target="_blank" rel="noopener noreferrer" className="login-preview-link">
<ExternalLink size={14} />
Open full site
</a>
@@ -123,7 +123,7 @@ function LoginPreview() {
style={{ width: previewWidth * scale, height: previewHeight * scale }}
>
<iframe
src="/"
src={BASE}
title="Website preview"
className="login-preview-iframe"
style={{
@@ -422,7 +422,7 @@ export default function App() {
const prefetch = document.createElement('link');
prefetch.rel = 'prefetch';
prefetch.href = '/preview.html';
prefetch.href = `${BASE}preview.html`;
document.head.appendChild(prefetch);
setContentLoading(true);
@@ -542,7 +542,7 @@ export default function App() {
<p className="admin-topbar-sub">{SECTION_DESCRIPTIONS[activeSection]}</p>
</div>
<div className="admin-topbar-actions">
<a href="/" target="_blank" rel="noopener noreferrer" className="btn-ghost">
<a href={BASE} target="_blank" rel="noopener noreferrer" className="btn-ghost">
<ExternalLink size={14} />
View site
</a>
+1 -1
View File
@@ -1,4 +1,4 @@
const API_BASE = import.meta.env.VITE_API_URL || '/citpl_website';
const API_BASE = '';
export function getToken() {
return localStorage.getItem('admin_token');