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.

Files: 
CommentFileSizeAuthor
#3 views.code_.1845268-3.patch1.03 KBPol
PASSED: [[SimpleTest]]: [MySQL] 1,652 pass(es).
[ View ]
#2 views.miscellaneous.1845268-2.patch954 bytesPol
PASSED: [[SimpleTest]]: [MySQL] 1,652 pass(es).
[ View ]
#1 1845268_jump_menu_default_value_absolute_link_option.patch954 bytesd.clarke
Test request sent.
[ View ]

Comments

d.clarke’s picture

Status:Needs work» Needs review
StatusFileSize
new954 bytes
Test request sent.
[ View ]
Pol’s picture

Version:6.x-3.x-dev» 7.x-3.x-dev
Component:Miscellaneous» Code
StatusFileSize
new954 bytes
PASSED: [[SimpleTest]]: [MySQL] 1,652 pass(es).
[ View ]

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

StatusFileSize
new1.03 KB
PASSED: [[SimpleTest]]: [MySQL] 1,652 pass(es).
[ View ]

New patch with comments as requested by @Dawehner.

dawehner’s picture

Project:Views» 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
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.