Skip to content

Commit a021699

Browse files
committed
fix(nav): dhake link points to real cross-origin URL, mounts MFE in-shell
The dhake nav anchor now has an absolute href (https://dhake.fixpointlinux.org/) so hover/copy/open-in-new-tab/SEO show the correct URL, plus a data-mfe-route attribute naming the local /dhake route. The framework router (mfe-framework c79ea0d) intercepts plain clicks on data-mfe-route anchors and mounts the remote MFE in-shell; modifier/blank clicks still hit the real URL.
1 parent de11222 commit a021699

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎src/Main.elm‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ import Fixpoint.Nav
3939
import Fixpoint.Section
4040
import Fixpoint.Style
4141
import Html exposing (Html, a, b, div, em, li, p, pre, span, table, tbody, td, text, th, thead, tr)
42-
import Html.Attributes exposing (class, href)
42+
import Html.Attributes exposing (attribute, class, href)
4343

4444

4545
main : Program () Model Msg
@@ -122,7 +122,8 @@ navView =
122122
{ toggle = "components ▾"
123123
, items =
124124
[ Fixpoint.Nav.menuItemFx "https://fixpoint-linux.github.io/datalog-dafsa/" "datalog-dafsa"
125-
, Fixpoint.Nav.menuItemClass "ddhake" "/dhake" "dhake →"
125+
, a [ class "ddhake", href "https://dhake.fixpointlinux.org/", attribute "data-mfe-route" "/dhake" ]
126+
[ text "dhake →" ]
126127
, Fixpoint.Nav.menuItemClass "dfxstore" "https://fixpoint-linux.github.io/fxstore/" "fxstore →"
127128
, Fixpoint.Nav.menuItem "https://github.com/fixpoint-linux/dhall-c" "dhall-c"
128129
, Fixpoint.Nav.menuItem "https://github.com/fixpoint-linux/dafsa" "dafsa"

0 commit comments

Comments
 (0)