Opened 6 years ago

Closed 5 years ago

#4802 closed defect (fixed)

Wikipedia Link with Anchor - uselang parameter placed incorrect

Reported by: _al Owned by: rails-dev@…
Priority: minor Milestone:
Component: website Version:
Keywords: Cc:

Description

Example: Wikipedia link of node 191972319.

If the link references an anchor and the uselang parameter is added at the end, this makes the anchor reference disfunctional, like http://de.wikipedia.org/wiki/Liste_der_denkmalgesch%C3%BCtzten_Objekte_in_Wien/Penzing#objektid-25043?uselang=en

The uselang parameter should be added before the anchor, like http://de.wikipedia.org/wiki/Liste_der_denkmalgesch%C3%BCtzten_Objekte_in_Wien/Penzing?uselang=en#objektid-25043

/al

Attachments (1)

commit-5377db8 (3.2 KB) - added by Kalten666 5 years ago.

Download all attachments as: .zip

Change History (4)

Changed 5 years ago by Kalten666

Attachment: commit-5377db8 added

comment:2 Changed 5 years ago by Kalten666

A fix: only slightly adapted by myself, following the example of Arup Rakshit on http://stackoverflow.com/ in his answer to the question “Ruby, How to add a param to an URL that you don't know if it has any other param already”.

git-patch: see attached file commit-5377db8

I did test the mechanism, but I did not test it in the system of the webserver! Pray do this for me prior to committing that patch!

ru, Kalten666

comment:3 Changed 5 years ago by Tom Hughes

Resolution: fixed
Status: newclosed

Fixed by 1873478/rails.

Note: See TracTickets for help on using tickets.