Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Links to Docs page didn't work #473

Merged
merged 5 commits into from
Apr 11, 2023
Merged

Conversation

reglim
Copy link
Contributor

@reglim reglim commented Mar 22, 2023

The docs page was way too complicated anyway, so I simplified it a bit.

I fixed the following issues:

  • Link to docs page resulted in 404, when reloaded
  • Browser Back button not working properly (Docs and Search)
  • Open in New Tab not working

fixes: #475, #476, #477, #479

@reglim reglim force-pushed the fix/links-to-docs-page-not-working branch from 8d8a0fe to b494493 Compare March 22, 2023 16:50
@randombenj

This comment was marked as outdated.

@reglim reglim force-pushed the fix/links-to-docs-page-not-working branch 4 times, most recently from 792fa91 to 8de8bff Compare March 27, 2023 06:33
@reglim reglim changed the title Fix: Links to Docs page didn't work Draft: Fix: Links to Docs page didn't work Mar 27, 2023
@reglim reglim force-pushed the fix/links-to-docs-page-not-working branch 4 times, most recently from 94d7032 to 7229b5e Compare March 27, 2023 07:16
docat/docat/nginx/default Show resolved Hide resolved
web/src/components/Project.tsx Show resolved Hide resolved
web/src/pages/Docs.tsx Show resolved Hide resolved
@reglim reglim force-pushed the fix/links-to-docs-page-not-working branch 8 times, most recently from 791abea to 58b45e6 Compare March 28, 2023 06:46
@fliiiix
Copy link
Member

fliiiix commented Mar 28, 2023

i had a quick look no idea what that does but seems fine to me if it works

@reglim
Copy link
Contributor Author

reglim commented Mar 28, 2023

i had a quick look no idea what that does but seems fine to me if it works

Here's an explanation: https://stackoverflow.com/a/17800131/20919151

@randombenj
Copy link
Member

i had a quick look no idea what that does but seems fine to me if it works

Here's an explanation: https://stackoverflow.com/a/17800131/20919151

This is something I usually try to add as a source code comment so it is more clear when reading the code ;)

@reglim reglim force-pushed the fix/links-to-docs-page-not-working branch from 58b45e6 to 0bd5220 Compare March 28, 2023 11:38
@reglim
Copy link
Contributor Author

reglim commented Mar 28, 2023

i had a quick look no idea what that does but seems fine to me if it works

Here's an explanation: https://stackoverflow.com/a/17800131/20919151

This is something I usually try to add as a source code comment so it is more clear when reading the code ;)

Fair, I just thought it's such a common pattern in nginx configs that I didn't bother ...

@reglim reglim force-pushed the fix/links-to-docs-page-not-working branch 3 times, most recently from f21ebbf to 5fa4bb3 Compare March 29, 2023 06:13
web/src/pages/Docs.tsx Outdated Show resolved Hide resolved
@reglim reglim force-pushed the fix/links-to-docs-page-not-working branch from 5fa4bb3 to 5a58007 Compare March 29, 2023 06:54
The docs page was way too complicated anyway, so I simlified it a bit.

fixes: #476, #477
I fixed it by just making sure we insert a # between the host and the
location part in the url in the Home Component (that is where 404
requests ultimately land, if they don't have a # in the url).

fixes: #477
@reglim reglim force-pushed the fix/links-to-docs-page-not-working branch 2 times, most recently from 14428ab to d83ff65 Compare April 5, 2023 06:34
@reglim reglim changed the title Draft: Fix: Links to Docs page didn't work Fix: Links to Docs page didn't work Apr 5, 2023
@reglim reglim force-pushed the fix/links-to-docs-page-not-working branch 3 times, most recently from e9bdb56 to 7702f73 Compare April 11, 2023 06:44
It now shows "v. {version}" with a space and always gets the correct
latest version that you would land on if you click on the link.
@reglim reglim force-pushed the fix/links-to-docs-page-not-working branch from 7702f73 to f41e8c7 Compare April 11, 2023 08:33
@reglim reglim merged commit 3d8d18b into main Apr 11, 2023
@reglim reglim deleted the fix/links-to-docs-page-not-working branch April 11, 2023 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Links to Docs don't work
3 participants