Opened 6 years ago

Closed 6 years ago

#185 closed defect (worksforme)

bug in Project -> Source file URL

Reported by: abdessamad idrissi Owned by: somebody
Milestone: Priority: normal
Version: Component: General
Keywords: Cc:


I hosted my code on google and use
to view the source code.

I set GlotPress to use something like:

but this leads to a 404 page since GlotPress ommits the "trunk" directory from the URL.

To fix this, i add a dummy directory afetr "trunk", so the Source file URL becomes;

Change History (1)

#1 @nacin
6 years ago

  • Priority changed from major to normal
  • Resolution set to worksforme
  • Status changed from new to closed

This works for me:


GlotPress does a very simple str_replace() to make this work; it does not strip /trunk/:

str_replace( array('%file%', '%line%'), array($file, $line), $this->source_url_template() );

So I am thinking your setting is not configured properly.

Note: See TracTickets for help on using tickets.