Internal redirection not working on anchor tag - AC2

Wappler Version : 6.0.2
Operating System : W11
Server Model: NodeJS

I have a repeat which generates many links on the page, and each should redirect internally.
Additionally, I have a couple of regular anchor tags as well, which work fine.

I have experimental and beta channel both enabled, and all the files have been updated.
On AC version 2.0.0-beta.18.

Earlier reports, which were fixed:

@patrick / @George This issue still exists in Wappler 6.8.0 with the latest AC2 stable version.
Can you guys please push an inline fix for this urgently? We have started to upgrade one of our big projects to AC2, and this is a deal-breaker.

I beliefe that most routing issues were fixed and your topic doesn't really explain in which situation it still fails. Perhaps you could add some example code with which it doesn't work.

:point_down:


<div id="reMenu" is="dmx-repeat" dmx-bind:repeat="scWebContent.data.Menu" class="sf-menu-p">
          <a dmx-bind:href="page_url" class=" align-items-center d-flex text-decoration-none text-primary sf-subtitle sf-nav-link mb-1" dmx-on:click="run([{condition:{if:`browser1.viewport.width&lt;1200`,then:{steps:{run:{action:`cookiesToggleSidebarValue.set(\'tooggleValue\',0,{})`,outputType:'text'}}},outputType:'boolean'}},{condition:{if:`page_name == \'inbox\'`,then:{steps:{run:{action:`varChatNotifCount.setValue(0)`,outputType:'text'}}},outputType:'boolean'}}])" dmx-class:bg-light="browser1.location.pathname == page_url" dmx-class:text-gray-secondary="browser1.location.pathname != page_url" dmx-bs-tooltip="cookiesToggleSidebarValue.data.tooggleValue==0?display_name:null" internal="true">
            <img dmx-bind:src="icon" class="sf-icon-dimensions col-xl col-auto" dmx-class:sf-primary-icon="browser1.location.pathname == page_url">
            <span class="ms-xl-0 ms-2">{{display_name}}</span>
          </a>
        </div>

Duplicate: Internal link with dmx-bind:href not working (ignoring internal attribute)

Just checked this and able to reproduce. My initial report was only for repeats, since I did not yet test regular dynamic link, but that also doesn't work.

If the anchor tag does not have dynamic href, internal works. But both dynamic href and internal are failling and doing a full page load.

@patrick Any update on this? This has put a hold on our migration plans from AC1 to AC2.

Bump. Still waiting on this.

I will try to look at it, currently having vacation. Will be back at the office next week.

Thank you for the reply. Not a good news for us.
Will re-plan our tasks around this.

If it is a simple fix I will post an update ASAP.

Got an update that probably fixes it.

dmxRouting.zip (9.7 KB)

1 Like

That works. Thank you for taking the time to share the solution. :pray:

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.