Page MenuHomePhabricator

[BUG] All Wiktionary links should start with "./" xor "/wiki/"
Open, NormalPublic

Description

Wiktionary links start with "./" or "/wiki/". This adds an extra parsing step on the client or a bug if it expects them to all be uniform. The service should provide uniformly structured links. App side workaround in T132397.

Event Timeline

Restricted Application added subscribers: TerraCodes, Aklapper. · View Herald TranscriptApr 19 2016, 3:26 PM

I'm hitting a similar problem with my web app. I want to render different languages of a single project in the same interface. The problem I have is all the local urls point to /wiki/<title> (in my app this would be /en/wiki/<title>

@GWicke should parsoid provide a way to customise links?

Jhernandez triaged this task as Normal priority.
Jhernandez assigned this task to bearND.
Jhernandez added subscribers: bearND, Jhernandez.

Not critical, making it normal.

@bearND to clarify what or where we would remove the prefix and who this would impact (android app?). Then move to backlog.

+ Android

The place to change this in MCS would be the processing script definition.yaml.

- rewriteUrlAttribute:
    a: href # format links like the MW parser

We could remove this portion or replace it with something else if that is not enough.
Before we do that we need to make sure that this doesn't negatively affect the definition feature in Android app. That's why I added the Android tag here.
When/if we do that we should also bump the version number of the definition endpoint.

Once we figure out how to move forward with this taking into account Bernd's comments above, we can update the description and move this to the backlog or upcoming.

bearND removed bearND as the assignee of this task.Mar 19 2019, 3:12 AM

@Sharvaniharan of @Dbrant Can you respond to Bernd's comments?

I don't believe this will impact our handling of the links in the app.