복귀 링크 기본 경로 정리
This commit is contained in:
+6
-5
@@ -1372,7 +1372,7 @@ car_monitor_require_access(false);
|
||||
<i class="fas fa-car"></i>
|
||||
</div>
|
||||
<div>
|
||||
<a href="https://chaegeon.com/blog" id="blogBackLink" class="blog-back-link"><span class="backArrow">‹</span> 블로그</a>
|
||||
<a href="https://chaegeon.com/" id="blogBackLink" class="blog-back-link"><span class="backArrow">‹</span> 채건닷컴</a>
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<div class="app-title" data-i18n="appTitle">Car Monitor</div>
|
||||
<span id="live-badge" class="badge bg-secondary bg-opacity-10 text-secondary border border-secondary border-opacity-20 rounded-pill" style="font-size:0.6rem; vertical-align: top;">WAIT</span>
|
||||
@@ -1826,7 +1826,7 @@ car_monitor_require_access(false);
|
||||
let wakeLockWanted = false;
|
||||
let latestDashboardData = null;
|
||||
let latestDashboardMeta = null;
|
||||
const FALLBACK_BACK_TARGET = 'https://chaegeon.com/blog';
|
||||
const FALLBACK_BACK_TARGET = 'https://chaegeon.com/';
|
||||
const BACK_LINK_PATH_TITLE = {
|
||||
'/': '채건닷컴',
|
||||
'/home': '홈',
|
||||
@@ -1903,9 +1903,10 @@ car_monitor_require_access(false);
|
||||
const ref = sameSiteUrl(document.referrer || '');
|
||||
const current = new URL(location.href);
|
||||
const target = ref && ref.href !== current.href ? ref.href : FALLBACK_BACK_TARGET;
|
||||
let label = titleFromBackUrl(target);
|
||||
const knownLabel = titleFromBackUrl(target);
|
||||
let label = knownLabel;
|
||||
|
||||
if (ref && ref.origin === location.origin) {
|
||||
if (!knownLabel && ref && ref.origin === location.origin) {
|
||||
try {
|
||||
const res = await fetch(ref.href, { credentials: 'same-origin', cache: 'force-cache' });
|
||||
if (res.ok) {
|
||||
@@ -1924,7 +1925,7 @@ car_monitor_require_access(false);
|
||||
if (!link) return;
|
||||
|
||||
link.href = FALLBACK_BACK_TARGET;
|
||||
updateBackLinkLabel('블로그');
|
||||
updateBackLinkLabel('채건닷컴');
|
||||
|
||||
resolveBackTarget().then(({ href, label }) => {
|
||||
link.href = href;
|
||||
|
||||
Reference in New Issue
Block a user