Report any technical problems you discover and discuss solutions.

Bootstrap - can't open link in same window

  • rushworthlee@yahoo.co.uk
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 9 ans 10 mois #4001 par rushworthlee@yahoo.co.uk
Bootstrap - can't open link in same window a été créé par rushworthlee@yahoo.co.uk
Hi there,

I wondered if someone could help me with this issue I'm struggling with. I've set up some links to other pages on the Bootstrap site but I can only get them to work if I set the target to 'New Window' which isn't ideal. It doesn't want to open them within the same window (Self) and this is also the case when I've tried using the Xerte page link.

Thanks,
Lee

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 10 mois #4002 par Fay
Réponse de Fay sur le sujet Bootstrap - can't open link in same window
Hi Lee

It looks like there were some fixes a couple of months ago to the way links in Bootstrap projects worked. Using the 'Xerte Page Link' method does work with the current code (does this work for you?... www.nottingham.ac.uk/toolkits/play_15377 ).

Pasting the page's URL into a normal link won't work unless the page is refreshed (or view freshly in new window).

Fay

Connexion ou Créer un compte pour participer à la conversation.

  • rushworthlee@yahoo.co.uk
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 9 ans 10 mois #4006 par rushworthlee@yahoo.co.uk
Réponse de rushworthlee@yahoo.co.uk sur le sujet Bootstrap - can't open link in same window
Thanks Fay. I've set them up as Xerte Page Links but I can't seem to get it to work. If I inspect it, it says 'Navigate to Page not defined'. The one you've attached works fine for me.

I'm doing it via Birkbeck's Xerte portal. Might there be a fix update that they need to run?

Thanks,
Lee

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 9 ans 10 mois #4008 par Fay
Réponse de Fay sur le sujet Bootstrap - can't open link in same window
It's a good idea for the install to be as up to date as possible (v3.3 was released last week with lots of bug fixes & some new features too)

I think I've just found a workaround that might work for you though ( github.com/thexerteproject/xerteonlinetoolkits/issues/426 ). If you view the source of your text field try adding your link in this format:

<a href="javascript:parseContent(1);">Page 2</a>

The page numbering starts from 0 so a link to page 1 is parseContent(0), page 2 is parseContent(1) etc.

I've just tested it and this still works in v3.3 so should continue working if they do upgrade at some point in the future.
Les utilisateur(s) suivant ont remercié: rushworthlee@yahoo.co.uk

Connexion ou Créer un compte pour participer à la conversation.

  • rushworthlee@yahoo.co.uk
  • Auteur du sujet
  • Hors Ligne
  • Nouveau membre
  • Nouveau membre
Plus d'informations
il y a 9 ans 10 mois #4011 par rushworthlee@yahoo.co.uk
Réponse de rushworthlee@yahoo.co.uk sur le sujet Bootstrap - can't open link in same window
Fantastic, that's worked. Massive thanks.

Connexion ou Créer un compte pour participer à la conversation.

Modérateurs: ronmjultenJohnSmith
Temps de génération de la page : 0.135 secondes
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo