Clear the discons if they are mid route, the waypoints will align, and if not check your flightplan. Most ATC would vector you to the LOC after the Discontinuity at the bottom of your STAR. So thats usually when ill just enter a “direct” to the top of the LOC. Reference your charts, there may be a transition you can take. Otherwise just vector yourself the way ATC would according to the chart.