Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

How to make a hard link?

Started by Muut Archive 10 years ago · 3 replies · 436 views
10 years ago

I have finished a company site using grav, it has english and a native language , I cannot for the life of me get langswitcher to work correctly - it gets the wrong after multiple lang changes (native->english->native) for example, and my client has decided that he doesn't want it as a plugin, but instead as a hard link - exept that when I try to make a hard link, it just adds the link on top off the url that was made (eg website.com/en/index -> website.com/en/index/lt/index/) and so it fails, what are my options here?(Spent countless hours in the docs and checked the forum for answers :// )

Thanks!

10 years ago

Langswitcher should work fine as long as you don't have custom slugs in subpages, that's an issue I already noticed and looking to solve soon.

A plain link is going to work as long as you add / at the beginning so the browser knows it has to look at the domain root, and not relative to the current page.

10 years ago

but the plain link adds ontop of existing url.. it doesnt actually go back to the index, is there a way to force it though?

10 years ago

That's why you put a / at the front. That makes it an absolute instead of a relative link.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1350 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2947 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago