If you select the "Use absolute link" checkbox on the path field for your jump menu, it'll fail to set the default value when you visit a page from the jump menu. The issue is that the options array uses the path field values which are absolute urls, but when setting the default value it uses a root-relative url so there is never a match. The attached patch will look at the absolute link checkbox for the jump menu's selected path field and will use the appropriate url when setting the default value.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

d.clarke’s picture

Status: Needs work » Needs review
FileSize
954 bytes
Pol’s picture

Version: 6.x-3.x-dev » 7.x-3.x-dev
Component: Miscellaneous » Code
FileSize
954 bytes

Got the problem with Views 7.x-3.x when enabling different languages, I need to use absolute urls because by default, the url() doesn't take in account the language when generating the url().

This patch fix it for Views 7.x-3.x

Pol’s picture

FileSize
1.03 KB

New patch with comments as requested by @Dawehner.

dawehner’s picture

Project: Views (for Drupal 7) » Chaos Tool Suite (ctools)
Version: 7.x-3.x-dev » 8.x-1.x-dev
Status: Needs review » Patch (to be ported)

Committed and pushed.

DamienMcKenna’s picture

Project: Chaos Tool Suite (ctools) » Views (for Drupal 7)
Version: 8.x-1.x-dev » 7.x-3.x-dev
Issue summary: View changes
Status: Patch (to be ported) » Fixed

Why was this pushed to CTools 8.x? The 8.x-1.x branch has been abandoned, 8.x-2.x is being rewritten from scratch, so this is no longer relevant to CTools.

I've pushed it back to the Views issue queue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.