LOS ANGELES — Julio Urias has shown his stuff since the All-Star break, going 4-0 in seven games with a 2.25 ERA during a time when the Dodgers’ rotation has been plagued by injuries.

The 20-year-old rookie was solid again in a 4-2 loss to last-place San Diego on Friday night. He allowed two runs and three hits, struck out six and walked one over 5 1/3 innings in his 13th and possibly last start of the regular season. The team is limiting the left-hander’s innings.

“He did everything we needed,” Dodgers manager Dave Roberts said. “Ninety pitches and time to get him out.”

Urias had the index and middle fingers on his left hand in protective sheaths after getting hit by the ball while trying to bunt early in the game. He received treatment and was hoping to be better by Saturday.

Los Angeles had 13 hits, but stranded 11 runners.

“The at-bat quality can get better,” Roberts said. “Don’t know if it’s trying to do too much.”

The Dodgers lost for the third time in four games, but their lead in the NL West remained at two games over the San Francisco Giants, who lost to the Cubs.

Yangervis Solarte hit a tiebreaking homer leading off the eighth inning for the Padres, who ended a three-game skid.

Brad Hand (4-3) got the victory, allowing one hit and striking out four in 1 2/3 innings of relief. Brandon Maurer pitched the ninth for his seventh save.

Solarte hit his career high-tying 14th homer on a 1-1 pitch from Adam Liberatore (2-2). Pinch-hitter Brett Wallace hit a bloop single over the third baseman’s head with two outs, scoring Alex Dickerson, who walked, for a 4-2 lead.

The Padres rallied twice, including in the sixth on Derek Norris’ two-run double that gave them a 2-1 lead. They were his first RBIs since Aug. 2.

Joc Pederson drove in both Dodgers runs. His RBI single gave them a 1-0 lead in the fourth and his 19th homer tied it 2-all in the sixth.

Yasiel Puig rejoined the Dodgers after a monthlong demotion to the minors. He went 2 for 4, including a two-out single in the fifth.

Puig grounded out with the bases loaded in the third. He singled and went to second on a throwing error in the seventh, but the Dodgers ended the inning with consecutive strikeouts.

Padres starter Clayton Richard allowed one run and nine hits in five innings.

HITTING ‘EM

Urias became the first Dodgers pitcher to hit three batters with pitches since Carlos Monasterios on Aug. 26, 2010, against Milwaukee.

SLUMPING SEAGER

Dodgers SS Corey Seager went hitless in four at-bats with a walk and a strikeout, extending his offensive slump to 0 for 19 — his longest drought of the season.

TRAINER’S ROOM

Padres: OF Jon Jay took batting practice and was set to begin a three-game rehab assignment at Class A Lake Elsinore on Saturday. He’s expected to rejoin the team next week. … RHP Tyson Ross (right shoulder inflammation), out since April, was expected to arrive Friday night for two days of workouts with the team. … 2B Jemile Weeks, out since May with hamstring issues, received a cortisone shot Thursday but continues to struggle to get back to 100 percent. “It’s looking less and less likely he’s going to play for us before the year is out,” manager Andy Green said.

Dodgers: LHP Clayton Kershaw is scheduled to make a rehab start at Class A Rancho Cucamonga on Saturday. He’ll throw three innings or around 50 pitches, with LHP Brett Anderson to follow. Anderson is on the DL with a finger blister. Kershaw has been sidelined for more than two months with a herniated disk in his back. … Los Angeles recalled C-INF Austin Barnes, RHP Josh Fields and Puig from Triple-A Oklahoma City, and reinstated RHP Louis Coleman and Josh Ravin from the 15-day DL.

UP NEXT

Padres: RHP Luis Perdomo (7-7, 5.84 ERA) is 0-2 with a 4.91 ERA in two starts against the Dodgers this season. Perdomo threw the team’s first complete game of 2016 in his last start, holding Miami to six hits in a 3-1 victory.

Dodgers: LHP Rich Hill (10-3, 2.09 overall) makes his second start with the team after it was moved back because of tenderness on a blister. He threw six scoreless innings in his Los Angeles debut.