function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ron Mccrerey 20Ron Mccrerey 20 

Angular SPA app routing not working properly in a Visual Force page

 I have created a SPA app using javascript with the Angular framework. The app works fine in Classic, but the routing does not work properly in Lightning. The page loads fine, but when navigating to another page within the app it opens another window and give the following message "You don't have access to this record. Ask your administrator for help or to request access."

If you close that message the following message appears
"This list view isn't available in Lightning Experience. To see this list view, use Salesforce Classic or switch to another list view." Sometimes it will open a new tab or window with the following:
URL No Longer Exists
You have attempted to reach a URL that no longer exists on

You may have reached this page after clicking on a direct link into the application. This direct link might be:
• A bookmark to a particular page, such as a report or view
• A link to a particular page in the Custom Links section of your Home Tab, or a Custom Link
• A link to a particular page in your email templates

If you reached this page through a bookmark, you are probably trying to access something that has moved. Please update your bookmark.

If you reached this page through any of the other direct links listed above, please notify your administrator to update the link.

If you reached this page through a link on our site, please report the broken link directly to our Support Team and we will fix it promptly. Please indicate the page you were on when you clicked the link as well as any other related information. We apologize for the inconvenience.

Thank you again for your patience and assistance. And thanks for using!

The strange thing is that if you go back to original window with the SPA app, it will display the correct page and everything works fine. If you navigate to a new page in the SPA app the scenario start all over again.
Best Answer chosen by Ron Mccrerey 20
Ron Mccrerey 20Ron Mccrerey 20
I was able to partly resolve this by adding the following in the Angular App Routing Module:
imports: [RouterModule.forRoot(routes, {  useHash: true  })],
This solved the above problem, but now the screen becomes unstable when changing routes.

All Answers

AbhishekAbhishek (Salesforce Developers) 
These list view features aren’t available in Lightning Experience.
  • Following records directly from a list
  • Sharing list views with groups
  • Clone list views
  • Some mass actions, including modifying or deleting multiple items in a list at once or sending mass email
  • Custom actions
  • Drag-and-drop scheduling for account, contact, and lead list views
  • Feeds
  • The icon to create a printable view of a list

List views display and behave differently in Lightning Experience.
  • You don’t go to a new page to create a list view. Instead, you stay on the same page and give the list view a name in a pop-up dialog box. You add filters to customize your list with a panel that slides out on the right side of the page.
  • You can estrict list views only by selecting All or My. Other options, such as restricting by queue, campaign, or price book, aren’t available.
  • Navigation through list views has changed. Because list views have infinite scrolling, you can’t specify the number of records to show per page. Also, you can’t navigate through pages with arrow buttons, and you can’t jump to a specific page of results. Jumping to records with names that start with a particular letter isn’t available.
  • The drop-down menu shows up to 2000 views. The menu loads views in batches of 50 as you scroll down. Recently viewed lists appear first, followed by other list views in alphabetical order. Recently viewed lists and the Search box appear only if there are 11 or more list views.
  • You can’t change the order of columns by dragging the column heading to a new position in the table. Instead, you change the columns that appear and their order by choosing Select Fields to Display from the List View Controls drop-down menu. If you add or remove a column in Lightning Experience, all custom column widths are deleted. You can switch back to Salesforce Classic to adjust column widths.
  • Inline editing of fields in a list view is available for list views that contain only one record type. However, the list view can’t use filter logic with OR clauses. You can edit selected fields on multiple records and then save them all at once. Some standard and custom fields aren’t editable inline.
  • You can select multiple items in a list view to do a mass action on them. But you can’t mass-edit records — that is, select multiple records, modify one field on a record and then apply the change globally to all the records.
  • List views load only 50 items at once without scrolling. To select more than 50 items, scroll to load the last item and then select the range of items.
  • Limited row-level actions are available. For most objects, available actions are Edit and Delete. For leads, 2 more actions are available: Convert and Clone. For files, available actions are Edit, Delete, and Download.
  • Custom buttons are available, but can’t be configured to do record action or mass actions like mass edit or mass delete. For example, an admin can create a button that launches a Visualforce page.
  • For filter criteria, only these relative date ranges are supported: Today, Tomorrow, Yesterday, This Week, This Month, This Quarter, This Year, Last Week, Last Month, Last Quarter, Last Year.
  • List views in Lightning Experience don’t support starts with as a filter criterion for ID fields. An ID field is a 15-character field that identifies a record. For example, the Account ID field on the contact object identifies which account a contact is associated with. You can use starts with as a filter criterion for other fields.
  • In filter logic statements, NOT doesn’t work with parenthetical expressions. For example, the expression 1 AND NOT (2 AND 3) evaluates as 1 AND (NOT 2 AND 3). In the filter results, no records are returned when you’d expect to see some records.
  • Filters support values only between the minimum and maximum for a signed 23-bit integer, or between 1 and 2,147,483,648. A value outside of this range disables that filter.
  • The name of the recent records list that displays on the home page for every standard and custom object is different in Lightning Experience. It’s called Recently Viewed. This view isn’t deletable, filterable, or editable. Salesforce admins can use the Object Manager in Setup to select and order columns for this view. Your users can sort items in the view by clicking inside a column header. An arrow in the column header shows if the list items are sorted in ascending or descending order.
  • Another list view is available for most standard objects via the drop-down list with a name similar to Recently Viewed. The name of this view includes the name of the object. For example, this list view for accounts is called Recently Viewed Accounts. These 2 list views, Recently Viewed and Recently Viewed Objects, show the same records. The Recently Viewed Objects list view isn’t deletable, filterable, or editable. Your users can sort the records and chart this list view’s data. They can switch to Salesforce Classic to reorder the columns displayed in the list view. The columns appear in the new order when the user switches back to Lightning Experience.

Kanban View
  • The Kanban is not available from the Recently Viewed list view. Users must select another list view before they can switch to the Kanban.
  • The Kanban shows records for only 1 record type at a time. If your organization uses multiple record types, create a separate list view for each and filter it by record type. Make the new list views public so your users can access them.
  • The Kanban view displays a maximum of 200 cards.
  • Columns aren’t created from inactive picklist fields. Records in a state or status that is inactive aren’t included in the Kanban view.
  • Drag-and-drop functionality isn’t supported for touchscreens.
  • Users receive alerts on opportunities with overdue tasks, no open activities, or no activity in the last 30 days. The alerts aren’t customizable.
  • Leads can’t be converted in the Kanban view, and contracts can’t be activated.
  • Columns aren’t created for any Lead Status value with a state of Converted.
  • A column isn’t created for the standard Contract Status of Activated.

For further reference, you can check this,

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Ron Mccrerey 20Ron Mccrerey 20
I was able to partly resolve this by adding the following in the Angular App Routing Module:
imports: [RouterModule.forRoot(routes, {  useHash: true  })],
This solved the above problem, but now the screen becomes unstable when changing routes.
This was selected as the best answer
Ron Mccrerey 20Ron Mccrerey 20 
For addtional information on previous response.
hd sdhd sd
I even have and Angular App hosted by way of Visual Force in Lightning Experience. When I navigate the use of the routeing in my Angular App a new web page pops up with page of thedinah ( "URL No Longer Exists You have attempted to reach a URL that now not exists on salesforce.Com.