[AMORO-3344] Fix the misdirection to quick start page when jumping from a three-level directory#42
Conversation
|
The jump logic for “pre”=“relative” is defined in amoro-theme/layouts/partials/header.html: |
klion26
left a comment
There was a problem hiding this comment.
Thanks for the contribution, verified it in my local env, and it looks fine. Will merge it if there are no more comments from the community.
|
|
@MarigWeizhi thanks for the review, seems there is something wrong with the
Do you want to file an issue and solve this, thanks. |
@klion26 I can solve the problem of “latest” jumping to “lastest” in version 0.6.1. |
|
@Jzjsnow @MarigWeizhi thanks for the contribution |



apache/amoro#3344
Here, we set the “pre” attribute of the “Quickstart” navigation item to “relative”, so that every time we click on the Quickstart will start from the $.Site.BaseURL, i.e. $AMORO_HOMEPAGE/docs/$version. Therefore, the jump ../../quick-start/ will point to a fixed path: $AMORO_HOMEPAGE/quick-start, so that it is no longer affected by the user's current path (e.g. third-level directory).
I've tested it locally and it works.