Report any technical problems you discover and discuss solutions.

Bootstrap - can't open link in same window

  • rushworthlee@yahoo.co.uk
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
9 jaren 10 maanden geleden #4001 door rushworthlee@yahoo.co.uk
Bootstrap - can't open link in same window werd gestart door 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
9 jaren 10 maanden geleden #4002 door Fay
Beantwoord door Fay in topic 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • rushworthlee@yahoo.co.uk
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
9 jaren 10 maanden geleden #4006 door rushworthlee@yahoo.co.uk
Beantwoord door rushworthlee@yahoo.co.uk in topic 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

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
9 jaren 10 maanden geleden #4008 door Fay
Beantwoord door Fay in topic 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.
De volgende gebruiker (s) zei dank u: rushworthlee@yahoo.co.uk

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • rushworthlee@yahoo.co.uk
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
9 jaren 10 maanden geleden #4011 door rushworthlee@yahoo.co.uk
Beantwoord door rushworthlee@yahoo.co.uk in topic Bootstrap - can't open link in same window
Fantastic, that's worked. Massive thanks.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: ronmjultenJohnSmith
Tijd voor maken pagina: 0.217 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo