<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Liferay CE 7.4.43 and links with senna</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121573023" />
  <subtitle>Liferay CE 7.4.43 and links with senna</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121573023</id>
  <updated>2026-04-05T12:06:04Z</updated>
  <dc:date>2026-04-05T12:06:04Z</dc:date>
  <entry>
    <title>RE: RE: Liferay CE 7.4.43 and links with senna</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121578852" />
    <author>
      <name>Sebastian Wikholm</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121578852</id>
    <updated>2022-11-25T16:58:17Z</updated>
    <published>2022-11-24T05:20:45Z</published>
    <summary type="html">&lt;p&gt;No i did want SPA behaviour, but it was missing for about half the
  links on the page, ie the links made the page reload. Allthough half
  of them did have the &amp;quot;befora,start,endNavigation&amp;quot; events, ie
  SPA was working, the other half did not. I did not disable SPA at any
  point, nor did I disable them for specifik links, I did test the
  'data-senna-off' attribute to check if 'data-senna-off=false' would
  enable links.&lt;/p&gt;
&lt;p&gt;And yes The &amp;quot;Liferay.navigate()&amp;quot; or the one you mentionend
  (havent tested that one), was the solution. Ie catch clicks on the
  links not working and &amp;quot;Liferay.navigate()&amp;quot; instead. Finding
  the whole &amp;quot;Liferay.navigate()&amp;quot; was behind a lot of
  searching. I could not find it mentioned on
  &amp;quot;learn.liferay.com&amp;quot;, although it seem pretty essential.&lt;/p&gt;
&lt;p&gt;Now as far as i can find at the moment I have SPA working as it
  should, with a little McGyver chewing gum and chewing gum packaging
  (old reference but it still checks out (warning: recursive references)).&lt;br /&gt;
  &lt;br /&gt; Why it does that would be nice to know.&lt;/p&gt;</summary>
    <dc:creator>Sebastian Wikholm</dc:creator>
    <dc:date>2022-11-24T05:20:45Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay CE 7.4.43 and links with senna</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121576480" />
    <author>
      <name>Roselaine Marques</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121576480</id>
    <updated>2022-11-23T20:16:00Z</updated>
    <published>2022-11-23T09:49:21Z</published>
    <summary type="html">&lt;p&gt;Hi Sebastian, &lt;/p&gt;
&lt;p&gt;First I'd advise you to take a look at this documentation and make
  sure you are not disabling &lt;a
  href="https://help.liferay.com/hc/en-us/articles/360030752391-Disabling-SPA"&gt;https://help.liferay.com/hc/en-us/articles/360030752391-Disabling-SPA&lt;/a&gt;,
  by portal-ext, widget or adding in the URL the property 'data-senna-off=&amp;quot;true&amp;quot;'. &lt;/p&gt;
&lt;p&gt;Second, if you want the SPA behaviour, don't use the
  window.location=xxx because for sure will reload the whole page :)
  replace by &amp;quot;Liferay.Util.navigate(path)&amp;quot;.&lt;/p&gt;
&lt;p&gt;Saludos.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Roselaine Marques</dc:creator>
    <dc:date>2022-11-23T09:49:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay CE 7.4.43 and links with senna</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121576127" />
    <author>
      <name>Sebastian Wikholm</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121576127</id>
    <updated>2022-11-23T20:15:54Z</updated>
    <published>2022-11-23T07:40:03Z</published>
    <summary type="html">&lt;p&gt;For posterity:&lt;/p&gt;
&lt;p&gt;Why some links, like those in a dropdown menu are ignored, is still a
  mystery, but you can override the default behaviour of links that dont
  work and use in javasript: Liferay.navigate(url);. This will make all
  links work with SPA and the page wont be reloaded in its entirety.&lt;/p&gt;</summary>
    <dc:creator>Sebastian Wikholm</dc:creator>
    <dc:date>2022-11-23T07:40:03Z</dc:date>
  </entry>
  <entry>
    <title>Liferay CE 7.4.43 and links with senna</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121573022" />
    <author>
      <name>Sebastian Wikholm</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121573022</id>
    <updated>2022-11-22T19:07:28Z</updated>
    <published>2022-11-21T12:19:49Z</published>
    <summary type="html">&lt;p&gt;Im trying to figure out how my site will work best with senna.js SPA
  functionalities. One thing im having problems with is how some links
  are behaving as they should (normal anchor links on page, the logo
  link etc), while others reload the whole page like the my
  navigationmenu made with bootstrap. Some other things that reload the
  whole page are links in my portlets. &lt;br /&gt;
  &lt;br /&gt; Could anybody tell me if there is a correct way to insure a
  link inherits the normal SPA behaviour? window.location=xxx reloads
  the whole page..&lt;br /&gt; What is the right way to change the location
  via javascript and have senna working as it should?&lt;/p&gt;</summary>
    <dc:creator>Sebastian Wikholm</dc:creator>
    <dc:date>2022-11-21T12:19:49Z</dc:date>
  </entry>
</feed>
