filamentphp / filamentphp.com

Source code for the filamentphp.com website.
https://filamentphp.com
199 stars 261 forks source link

Feature: Remember Filament Version #240

Closed grafst closed 11 months ago

grafst commented 12 months ago

Sometimes I go to the docs via google and I land on the wrong filament version. And because I'm dumb sometimes I don't realise it that I'm actually reading an old version of the docs. I think it would be fantastic if the docs would remember the last version I selected via cookie. Or are there downsides tho that I am not seeing?

HassanZahirnia commented 12 months ago

Hey, can you provide examples to some of those links that bring you to the wrong docs page?

I think it would be fantastic if the docs would remember the last version I selected via cookie. Or are there downsides tho that I am not seeing?

We provide docs for different versions of Filament. So having a "default" or "active" one doesn't make sense. A link or section you see might not even exist in a different version, so we can't do 1:1 redirect.

grafst commented 12 months ago

aah, I see.

Well, one example: Was searching for "filamentphp components" on google. I got: https://filamentphp.com/docs/2.x/forms/layout but I was looking for: https://filamentphp.com/docs/3.x/support/blade-components/overview

HassanZahirnia commented 11 months ago

I see your use case. So as I said before, we cannot redirect v2 doc links to v3. So even if we implement a "remember filament version" feature, it won't work the way you expect.