pratik
pratik

@timapple How did you do that? Using categories?

|
Embed
cdevroe
cdevroe

@timapple The flash is due to your URL forwarding. (Perhaps you know this.) The navigation goes to /microposts but forwards to /categories/microposts. So the browser loads every page twice.And it doesn't forward until the URL is loaded.

How are you forwarding from one URL to the other? Perhaps having the page weight be as close to zero as possible would do the trick? I have other ideas as well.

|
Embed
cdevroe
cdevroe

@timapple If the navigation went directly to /categories/microposts - the flash would go away.

|
Embed
cdevroe
cdevroe

@timapple @manton - Can't Tim simply update his navigation links to be /categories/microposts (rather than /microposts) and this issue goes away?

|
Embed
SimonWoods
SimonWoods

@cdevroe @timapple @manton I've done this with Today I Learned (the "Tips" and "Guides" buttons).

I think mine is flashing too. When I look it appears that the site is first jumping to a URL without the categories part of the URL before redirecting. That's odd since I've only ever used the full URL for that page and haven't changed anything else, as far as I know.

I am using a custom theme (Primrose as the base) with Hugo 0.54.

|
Embed
manton
manton

@cdevroe @timapple I took another look at this and realized it's a bug in the Default theme with how the navigation menus are linked. I've fixed it if you update to the latest version.

|
Embed
manton
manton

@SimonWoods @cdevroe @timapple Looks like this was a problem in a few places. Not sure how it got out of sync, but the field name for redirects wasn't matching what we were using in Micro.blog. I'm fixing it for Primrose too and you can see the change in this diff.

|
Embed
pratik
pratik

@timapple That's cool. Doesn't marking categories add friction for micro posts? Or have you automated that?

|
Embed
pratik
pratik

@timapple Ah! Of course. I used to have two separate blogs for long and micro posts before combining them into one blog. This is an interesting way to do it. I’m tempted ☺️

|
Embed
cdevroe
cdevroe

@timapple @manton 👏👏

|
Embed