Changeset b94c08e in Klonkt for src/views/pages/search.ejs


Ignore:
Timestamp:
06/14/2026 05:25:41 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
8afbdd6
Parents:
7963a6e
Message:

fix: all site-scoped links use siteUrlBase in hub mode

Follow-up on the feed fix (612b102). The same class of bug was still present in:

  • post.ejs: tag, edit, delete links + comment forms + comment delete + login-next -> now with siteUrlBase prefix
  • bottom-tab.ejs: "Write" FAB (/posts/new)
  • home.ejs: empty-state "Write your first post"
  • profile-sheet.ejs: "New post"
  • search.ejs: search form action

Without the prefix these fell back to the primary site in hub (404 /
wrong site). In solo siteUrlBase is empty -> behavior unchanged.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/search.ejs

    r7963a6e rb94c08e  
     1<% const _base = (typeof siteUrlBase !== 'undefined' && siteUrlBase) ? siteUrlBase : ''; %>
    12<div class="container search-page">
    23  <h1>Search</h1>
    34
    4   <form method="get" action="/search" class="search-page-form">
     5  <form method="get" action="<%= _base %>/search" class="search-page-form">
    56    <input
    67      type="search"
Note: See TracChangeset for help on using the changeset viewer.