Changeset 743bb81 in Klonkt for src/views/pages


Ignore:
Timestamp:
06/14/2026 03:15:52 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
6e0249f
Parents:
4d7443b
Message:

hub: fix /user/:slug showed the overview instead of the site + heading "from users"

resolveSite rewrites /user/:slug to req.url='/', causing the hub route
GET / to pick it up again and show the overview instead of the clicked
site. Fix: overview only on the real root (siteUrlBase empty); otherwise
next() -> posts.js renders the site. Section title -> "Latest posts from users".

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/hub-home.ejs

    r4d7443b r743bb81  
    3838    <% if (posts && posts.length) { %>
    3939    <section class="hub-sec">
    40       <h2 class="hub-sec-title">Laatste posts</h2>
     40      <h2 class="hub-sec-title">Laatste posts van users</h2>
    4141      <div class="hub-feed">
    4242        <% posts.forEach(function(p){ %>
Note: See TracChangeset for help on using the changeset viewer.