Transferring anchor point when switching the language?

General questions regarding the use of languages in Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
holley
Joomla! Intern
Joomla! Intern
Posts: 61
Joined: Fri Oct 27, 2006 4:27 pm
Location: Hamburg

Transferring anchor point when switching the language?

Post by holley » Tue Jun 26, 2018 7:37 am

Hej!

I have a multilanguage one-page-design site. The language switcher works perfectly.
When switching the language the actual site is recalled - in this case only and always the index.php as there does not exist any other page. ;)
But is there a possibility to transfer the last chosen anchor (point)?
In case the contact region had been called the link should change from
https://www.mysite.org/en/#contact
to e.g.
https://www.mysite.org/fr/#contact.

As the content is moved/scrolled by Javascript the physical "URL" did not change and there is no attribute to transfer...

Thanks for your ideas!

User avatar
Webdongle
Joomla! Master
Joomla! Master
Posts: 44072
Joined: Sat Apr 05, 2008 9:58 pm

Re: Transferring anchor point when switching the language?

Post by Webdongle » Tue Jun 26, 2018 8:39 am

Link to your site please.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Transferring anchor point when switching the language?

Post by infograf768 » Tue Jun 26, 2018 9:19 am

In fact you want to associate anchors and switch via the language switcher.
We have no way to do that in core as an anchor is neither a menu item, neither a component item.

The only way I know would be to code specifically for each anchor as many possibilities as you have content languages and display the links (with flag or Language name) and switch there (not in the lang switcher).
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

holley
Joomla! Intern
Joomla! Intern
Posts: 61
Joined: Fri Oct 27, 2006 4:27 pm
Location: Hamburg

Re: Transferring anchor point when switching the language?

Post by holley » Tue Jun 26, 2018 11:25 am

I suppose you are right, Jean-Marie. Thank you anyway.
@Webdongle: As I am not allowed to publish links of clients I tried to send it to you by PM - but I am not allowed by this forum (!?). So ... thank you anyway as well!


Locked

Return to “Language - Joomla! 3.x”